__dirname + '/src/views/userbox.js',\r
__dirname + '/src/views/channeltools.js',\r
__dirname + '/src/views/channelinfo.js',\r
-\r
+ __dirname + '/src/views/rightbar.js',\r
__dirname + '/src/applets/settings.js',\r
__dirname + '/src/applets/chanlist.js',\r
__dirname + '/src/applets/scripteditor.js',\r
_kiwi.app.message.text(_kiwi.global.i18n.translate('client_models_network_channel_badkey').fetch(event.channel));
break;
case 'invite_only_channel':
- panel.addMsg(' ', '== ' + _kiwi.global.i18n.translate('client_models_network_channel_inviteonly').fetch(event.channel), 'status');
- _kiwi.app.message.text(_kiwi.global.i18n.translate('client_models_network_channel_inviteonly').fetch(event.channel));
+ panel.addMsg(' ', styleText('channel_inviteonly', {nick: event.nick, text: translateText('client_models_network_channel_inviteonly', [event.nick, event.channel]), channel: event.channel}), 'status');
+ _kiwi.app.message.text(event.channel + ' ' + _kiwi.global.i18n.translate('client_models_network_channel_inviteonly').fetch());
break;
case 'user_on_channel':
- panel.addMsg(' ', '== ' + event.nick + ' is already on this channel');
+ panel.addMsg(' ', styleText('channel_alreadyin', {nick: event.nick, text: translateText('client_models_network_channel_alreadyin'), channel: event.channel}));
break;
case 'channel_is_full':
- panel.addMsg(' ', '== ' + _kiwi.global.i18n.translate('client_models_network_channel_limitreached').fetch(event.channel), 'status');
- _kiwi.app.message.text(_kiwi.global.i18n.translate('client_models_network_channel_limitreached').fetch(event.channel));
+ panel.addMsg(' ', styleText('channel_limitreached', {nick: event.nick, text: translateText('client_models_network_channel_limitreached', [event.channel]), channel: event.channel}), 'status');
+ _kiwi.app.message.text(event.channel + ' ' + _kiwi.global.i18n.translate('client_models_network_channel_limitreached').fetch(event.channel));
break;
case 'chanop_privs_needed':
- panel.addMsg(' ', '== ' + event.reason, 'status');
+ panel.addMsg(' ', styleText('chanop_privs_needed', {text: event.reason, channel: event.channel}), '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) {