Display wallops in server window

Fixes #225
This commit is contained in:
Pavel Djundik 2016-10-01 00:29:49 +03:00
parent 52a0552bc4
commit 63f4fc39c9

View File

@ -25,6 +25,12 @@ module.exports = function(irc, network) {
handleMessage(data);
});
irc.on("wallops", function(data) {
data.from_server = true;
data.type = Msg.Type.NOTICE;
handleMessage(data);
});
function handleMessage(data) {
var highlight = false;
var self = data.nick === irc.user.nick;