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;
}
});
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});
}
});
"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]
}
"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({