]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Fix parameterised modes for ircds that don't send the correct MYINFO reply.
authorChris Porter <redacted>
Sun, 5 Apr 2009 00:30:22 +0000 (01:30 +0100)
committerChris Porter <redacted>
Sun, 5 Apr 2009 00:30:22 +0000 (01:30 +0100)
js/irc/baseircclient.js

index 38461d633c7eeacc44b95b1de07c1428af5bd7fe..e5fd5d614df27be248a4e3b3471c1a49ae45f0b1 100644 (file)
@@ -19,7 +19,7 @@ qwebirc.irc.BaseIRCClient = new Class({
     this.nickname = this.options.nickname;
     
     this.__signedOn = false;
-    this.pmodes = ["b", "k,", "o", "l", "v"];
+    this.pmodes = {b: true, k: true, o: true, l: true, v: true};
     this.channels = {}
     this.nextctcp = 0;    
 
@@ -287,6 +287,9 @@ qwebirc.irc.BaseIRCClient = new Class({
     }
   },  
   irc_RPL_MYINFO: function(prefix, params) {
+    if(params.length < 6)
+      return;
+
     var pmodes = params[5].split("");
     this.pmodes = {}