Explorar o código

disable rapido in config

isundil %!s(int64=6) %!d(string=hai) anos
pai
achega
90b6fa6058
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      rapido.js

+ 2 - 0
rapido.js

@@ -58,6 +58,8 @@ Rapido.prototype.onRename = function(oldNick, newNick) {
 }
 
 Rapido.prototype.onMessage = function(user, text) {
+    if (this.config.DISABLED)
+	return;
     this.onMessageInternal(user, this.users[user.toLowerCase()], text.trimEnd().replace(/\s+/, ' '));
 }