]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Add ascii CASEMAPPING from RPL_ISUPPORT.
authorChris Porter <redacted>
Sat, 11 Apr 2009 21:39:22 +0000 (22:39 +0100)
committerChris Porter <redacted>
Sat, 11 Apr 2009 21:39:22 +0000 (22:39 +0100)
js/irc/baseircclient.js
js/irc/ircclient.js
js/irc/irclib.js

index 008160b6637091d2167facce3fd5c9a0fea65cc0..f5a38c60745d4c2c26300af246ab040be787d88d 100644 (file)
@@ -69,6 +69,17 @@ qwebirc.irc.BaseIRCClient = new Class({
     var c = target.charAt(0);
     return c == '#';
   },
     var c = target.charAt(0);
     return c == '#';
   },
+  supported: function(key, value) {
+    if(key == "CASEMAPPING") {
+      if(value == "ascii") {
+        this.toIRCLower = qwebirc.irc.ASCIItoIRCLower;
+      } else if(value == "rfc1459") {
+        /* IGNORE */
+      } else {
+        /* TODO: warn */
+      }
+    }
+  },
   irc_RPL_WELCOME: function(prefix, params) {
     this.nickname = params[0];
     
   irc_RPL_WELCOME: function(prefix, params) {
     this.nickname = params[0];
     
index f37cb6dbce41bcbdaaaff739f36f79efc063ad8e..5939c35bf074b39b65b117c1dce4442caf371a8b 100644 (file)
@@ -504,6 +504,8 @@ qwebirc.irc.IRCClient = new Class({
       this.modeprefixes = value.substr(1, l);
       this.prefixes = value.substr(l + 2, l);
     }
       this.modeprefixes = value.substr(1, l);
       this.prefixes = value.substr(l + 2, l);
     }
+
+    this.parent(key, value);
   },
   connected: function() {
     this.newServerLine("CONNECT");
   },
   connected: function() {
     this.newServerLine("CONNECT");
index 99e061412cbd7b57c67c7229001e88f8ba25875c..4de7b2eb0ed032a1885c2dc796cd8e641e00582c 100644 (file)
@@ -45,7 +45,7 @@ qwebirc.irc.RFC1459toIRCLower = function(x) {
 }
 
 qwebirc.irc.ASCIItoIRCLower = function(x) {
 }
 
 qwebirc.irc.ASCIItoIRCLower = function(x) {
-  return x.toLower(); /* does unicode too.... */
+  return x.toLowerCase(); /* TODO: does unicode too.... */
 }
 
 String.prototype.hostToNick = function() {
 }
 
 String.prototype.hostToNick = function() {