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:
calzoneman 2013-08-09 16:28:25 -04:00
parent 539d728df4
commit 637eadea23

View file

@ -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();
} }