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