Procházet zdrojové kódy

disable rapido in config

isundil před 6 roky
rodič
revize
90b6fa6058
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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+/, ' '));
 }