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
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ User.prototype.initCallbacks = function() {
this.socket.on("chatMsg", function(data) {
if(this.channel != null) {
if(data.msg.indexOf("/afk") == -1) {
if(data.msg.indexOf("/afk") != 0) {
this.setAFK(false);
this.autoAFK();
}