panel.addMsg(' ', '== ' + event.reason, 'status');
_kiwi.app.message.text(event.reason + ' (' + event.channel + ')');
break;
+ case 'cannot_send_to_channel':
+ panel.addMsg(' ', '== ' + _kiwi.global.i18n.translate('Cannot send message to channel, you are not voiced').fetch(event.channel, event.reason), 'status');
+ break;
case 'no_such_nick':
tmp = this.panels.getByName(event.nick);
if (tmp) {
},
ERR_CANNOTSENDTOCHAN: function (command) {
- this.irc_connection.emit('server ' + this.irc_connection.irc_host.hostname + ' cannot_send_to_chan', {
+ this.irc_connection.emit('server ' + this.irc_connection.irc_host.hostname + ' cannot_send_to_channel', {
channel: command.params[1],
reason: command.params[command.params.length - 1]
});
function onCannotSendToChan(event) {
this.irc_connection.clientEvent('irc_error', {
- error: 'cannot_send_to_chan',
+ error: 'cannot_send_to_channel',
channel: event.channel,
reason: event.reason
});