Fix #249. I don't even want to calculate the odds of someone saying a message that contains /afk not at the beginning while being afk.
This commit is contained in:
parent
539d728df4
commit
637eadea23
2
user.js
2
user.js
|
@ -205,7 +205,7 @@ User.prototype.initCallbacks = function() {
|
||||||
|
|
||||||
this.socket.on("chatMsg", function(data) {
|
this.socket.on("chatMsg", function(data) {
|
||||||
if(this.channel != null) {
|
if(this.channel != null) {
|
||||||
if(data.msg.indexOf("/afk") == -1) {
|
if(data.msg.indexOf("/afk") != 0) {
|
||||||
this.setAFK(false);
|
this.setAFK(false);
|
||||||
this.autoAFK();
|
this.autoAFK();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue