Sfoglia il codice sorgente

disable rapido in config

isundil 6 anni fa
parent
commit
90b6fa6058
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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+/, ' '));
 }