Browse Source

disable rapido in config

isundil 6 years ago
parent
commit
90b6fa6058
1 changed files with 2 additions and 0 deletions
  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+/, ' '));
 }