Преглед на файлове

disable rapido in config

isundil преди 6 години
родител
ревизия
90b6fa6058
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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+/, ' '));
 }