]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Add a generic text field for whois, and add numeric 320 as a generic field.
authorChris Porter <redacted>
Sun, 21 Jun 2009 21:56:08 +0000 (22:56 +0100)
committerChris Porter <redacted>
Sun, 21 Jun 2009 21:56:08 +0000 (22:56 +0100)
js/irc/baseircclient.js
js/irc/ircclient.js
js/irc/numerics.js
js/ui/theme.js

index fd87bcbe1fb00e47f8636bc6af06dfcbc36f7d2e..0c1e314f69f67a832588be326a9741e151a514c4 100644 (file)
@@ -396,7 +396,13 @@ qwebirc.irc.BaseIRCClient = new Class({
     var opername = params[2];
 
     return this.whois(nick, "opername", {opername: params[2]});
-  },  
+  },
+  irc_RPL_WHOISGENERICTEXT: function(prefix, params) {
+    var nick = params[1];
+    var text = params.indexFromEnd(-1);
+    
+    return this.whois(nick, "generictext", {text: text});
+  },
   irc_RPL_ENDOFWHOIS: function(prefix, params) {
     var nick = params[1];
     var text = params.indexFromEnd(-1);
index b756fa63c07a75a0a3d5bb9be65a0633f1e77316..b5a3183c9b6cbd6baee39def53cdec74abe62bd0 100644 (file)
@@ -575,6 +575,9 @@ qwebirc.irc.IRCClient = new Class({
       mtype = "ACTUALLY";
       ndata.m = data.hostname;
       ndata.x = data.ip;
+    } else if(type == "generictext") {
+      mtype = "GENERICTEXT";
+      ndata.m = data.text;
     } else if(type == "end") {
       mtype = "END";
     } else {
index 30abc9a88df5c54a37222c1205470025891e2c97..9f5f7010073bd21ad87ded40123b7a306d102626 100644 (file)
@@ -17,6 +17,7 @@ qwebirc.irc.Numerics = {
   "330": "RPL_WHOISACCOUNT",
   "338": "RPL_WHOISACTUALLY",
   "343": "RPL_WHOISOPERNAME",
+  "320": "RPL_WHOISGENERICTEXT",
   "301": "RPL_AWAY",
   "401": "ERR_NOSUCHNICK",
   "404": "ERR_CANNOTSENDTOCHAN",
index e7ba74ee3c17e63091114a284683c575711c79f2..07f80233bd0eee47e36e47608e23a1d3d111fb68 100644 (file)
@@ -58,6 +58,7 @@ qwebirc.ui.themes.Default = {
   "WHOISOPER": ["          : $BIRC Operator$B", true],
   "WHOISOPERNAME": [" operedas : $m", true],
   "WHOISACTUALLY": [" realhost : $m [ip: $x]", true],
+  "WHOISGENERICTEXT": ["          : $m", true],
   "WHOISEND": ["End of WHOIS", true],
   "AWAY": ["$N is away: $m", true],
   "GENERICERROR": ["$m: $t", true],