this.wallops(user, text);
return true;
+ },
+ irc_RPL_CREATIONTIME: function(prefix, params) {
+ var channel = params[1];
+ var time = params[2];
+
+ this.channelCreationTime(channel, time);
+ },
+ irc_RPL_CHANNELMODEIS: function(prefix, params) {
+ var channel = params[1];
+ var modes = params.slice(2);
+
+ this.channelModeIs(channel, modes);
}
});
var host = user.hostToHost();
this.newServerLine("WALLOPS", {t: text, n: nick, h: host});
- }
+ },
+ channelModeIs: function(channel, modes) {
+ this.newTargetOrActiveLine(channel, "CHANNELMODEIS", {c: channel, m: modes.join(" ")});
+ },
+ channelCreationTime: function(channel, time) {
+ this.newTargetOrActiveLine(channel, "CHANNELCREATIONTIME", {c: channel, m: qwebirc.irc.IRCDate(new Date(time * 1000))});
+ }
});
"404": "ERR_CANNOTSENDTOCHAN",
"482": "ERR_CHANOPPRIVSNEEDED",
"305": "RPL_UNAWAY",
- "306": "RPL_NOWAWAY"
+ "306": "RPL_NOWAWAY",
+ "324": "RPL_CHANNELMODEIS",
+ "329": "RPL_CREATIONTIME"
};
"AWAY": ["$N is away: $m", true],
"GENERICERROR": ["$m: $t", true],
"GENERICMESSAGE": ["$m", true],
- "WALLOPS": ["WALLOP $n: $t", true]
+ "WALLOPS": ["WALLOP $n: $t", true],
+ "CHANNELCREATIONTIME": ["Channel $c was created at: $m", true],
+ "CHANNELMODEIS": ["Channel modes on $c are: $m", true]
};
qwebirc.ui.Theme = new Class({