function onWallops(event) {
- var panel, active_panel;
-
- panel = this.panels.server;
-
- panel.addMsg('[' + (event.nick||'') + ']', styleText('wallops', {text: event.msg}), 'wallops', {time: event.time});
-
- // Show wallops to the active panel if it's channel or query window
- active_panel = _kiwi.app.panels().active;
-
- if (active_panel !== panel) {
- if (active_panel.isChannel() || active_panel.isQuery())
+ // Send to server panel
+ this.panels.server.addMsg('[' + (event.nick||'') + ']', styleText('wallops', {text: event.msg}), 'wallops', {time: event.time});
+ // Send to active panel
+ if (_kiwi.app.panels().active !== this.panels.server)
_kiwi.app.panels().active.addMsg('[' + (event.nick||'') + ']', styleText('wallops', {text: event.msg}), 'wallops', {time: event.time});
- }
}
}
'464': 'ERR_PASSWDMISMATCH',
'470': 'ERR_LINKCHANNEL',
'471': 'ERR_CHANNELISFULL',
+ '472': 'ERR_UNKNOWNMODE',
'473': 'ERR_INVITEONLYCHAN',
'474': 'ERR_BANNEDFROMCHAN',
'475': 'ERR_BADCHANNELKEY',
'481': 'ERR_NOPRIVILEGES',
'482': 'ERR_CHANOPRIVSNEEDED',
+ '483': 'ERR_CANTKILLSERVER',
+ '484': 'ERR_ISCHANSERVICE',
+ '485': 'ERR_ISREALSERVICE',
+ '491': 'ERR_NOOPERHOST',
'670': 'RPL_STARTTLS',
'671': 'RPL_WHOISSECURE',
'900': 'RPL_SASLAUTHENTICATED',
'904': 'ERR_SASLNOTAUTHORISED',
'906': 'ERR_SASLABORTED',
'907': 'ERR_SASLALREADYAUTHED',
+ '972': 'ERR_CANNOTDOCOMMAND',
'WALLOPS': 'RPL_WALLOPS'
};
msg: command.params[command.params.length - 1]
});
},
+
+ ERR_NOOPERHOST: function (command) {
+ var params = _.clone(command.params);
+ params.shift();
+ genericNotice.call(this, command, params.slice(0, -1).join(', ') + ' ' + command.params[command.params.length - 1]);
+ },
+
+ ERR_UNKNOWNMODE: function (command) {
+ var params = _.clone(command.params);
+ params.shift();
+ genericNotice.call(this, command, params.slice(0, -1).join(', ') + ' ' + command.params[command.params.length - 1]);
+ },
+
+ ERR_CANTKILLSERVER: function (command) {
+ var params = _.clone(command.params);
+ params.shift();
+ genericNotice.call(this, command, params.slice(0, -1).join(', ') + ' ' + command.params[command.params.length - 1]);
+ },
+
+ ERR_ISCHANSERVICE: function (command) {
+ var params = _.clone(command.params);
+ params.shift();
+ genericNotice.call(this, command, params.slice(0, -1).join(', ') + ' ' + command.params[command.params.length - 1]);
+ },
+
+ ERR_ISREALSERVICE: function (command) {
+ var params = _.clone(command.params);
+ params.shift();
+ genericNotice.call(this, command, params.slice(0, -1).join(', ') + ' ' + command.params[command.params.length - 1]);
+ },
+ ERR_CANNOTDOCOMMAND: function (command) {
+ var params = _.clone(command.params);
+ params.shift();
+ genericNotice.call(this, command, params.slice(0, -1).join(', ') + ' ' + command.params[command.params.length - 1]);
+ },
};