Browse Source

disable rapido in config

isundil 6 năm trước cách đây
mục cha
commit
90b6fa6058
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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+/, ' '));
 }