From 637eadea237f7e5a7037d6d0127608570b73f45d Mon Sep 17 00:00:00 2001 From: calzoneman Date: Fri, 9 Aug 2013 16:28:25 -0400 Subject: [PATCH] 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. --- user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.js b/user.js index dfec554e..6395c6c8 100644 --- a/user.js +++ b/user.js @@ -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(); }