]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Patch from DarkDeviL that enabled WALLOP/WALLUSER parsing.
authorChris Porter <redacted>
Fri, 5 Jun 2009 22:36:30 +0000 (23:36 +0100)
committerChris Porter <redacted>
Fri, 5 Jun 2009 22:36:30 +0000 (23:36 +0100)
js/irc/baseircclient.js
js/irc/ircclient.js
js/ui/basetheme.js
js/ui/theme.js

index f5a38c60745d4c2c26300af246ab040be787d88d..c81afc287a9b59958231b72a06d7346e18833ed2 100644 (file)
@@ -431,5 +431,12 @@ qwebirc.irc.BaseIRCClient = new Class({
   irc_RPL_UNAWAY: function(prefix, params) {
     this.awayStatus(false, params.indexFromEnd(-1));
     return true;
+  },
+  irc_WALLOPS: function(prefix, params) {
+    var user = prefix;
+    var text = params.indexFromEnd(-1);
+    
+    this.wallops(user, text);
+    return true;
   }
 });
index 5939c35bf074b39b65b117c1dce4442caf371a8b..575f6ec7309f72888923a8341713072bdfcab41d 100644 (file)
@@ -595,5 +595,11 @@ qwebirc.irc.IRCClient = new Class({
         this.lastNicks.pop();
     }
     this.lastNicks.unshift(nick);
+  },
+  wallops: function(user, text) {
+    var nick = user.hostToNick();
+    var host = user.hostToHost();
+
+    this.newServerLine("WALLOPS", {t: text, n: nick, h: host});
   }
 });
index bfa57b391028241a11fd998cff80e45f16b98ee4..041f37173951b49db02a7709c7a18f540a4eaa98 100644 (file)
@@ -35,5 +35,6 @@ qwebirc.ui.theme.Default = {
   "CTCPREPLY": ["CTCP $x reply from $n: $m"],
   "OURCHANCTCP": ["[ctcp($t)] $x $m"],
   "OURPRIVCTCP": ["[ctcp($t)] $x $m"],
-  "OURTARGETEDCTCP": ["[ctcp($t)] $x $m"]
+  "OURTARGETEDCTCP": ["[ctcp($t)] $x $m"],
+  "WALLOPS": ["WALLOP $n: $t", true]
 }
index 82fd56ef448a64f3e86919be571c34458f93db01..1017cf21d18ec06a4abf577044aca93295e94a35 100644 (file)
@@ -61,7 +61,8 @@ qwebirc.ui.themes.Default = {
   "WHOISEND": ["End of WHOIS", true],
   "AWAY": ["$N is away: $m", true],
   "GENERICERROR": ["$m: $t", true],
-  "GENERICMESSAGE": ["$m", true]
+  "GENERICMESSAGE": ["$m", true],
+  "WALLOPS": ["WALLOP $n: $t", true]
 };
 
 qwebirc.ui.Theme = new Class({