fix report output

This commit is contained in:
reality 2013-08-27 22:09:59 +00:00
parent e6b764bd25
commit 0ced8cf27c
2 changed files with 7 additions and 2 deletions

View File

@ -136,7 +136,12 @@ var report = function(dbot) {
dbot.api.users.resolveUser(event.server, nick, function(reportee) {
if(_.has(event.allChannels, channelName)) {
if(reportee) {
this.api.notify('report', event.server, event.rUser, channelName, reason);
this.api.notify('report', event.server, event.rUser,
channelName, dbot.t('report', {
'reporter': event.rUser.primaryNick,
'reportee': nick,
'reason': reason
}));
event.reply(dbot.t('reported', { 'reported': nick }));
} else {
event.reply(dbot.t('user_not_found', {

View File

@ -1,6 +1,6 @@
{
"report": {
"en": "[{type}][{channel}][{reporter} -> {reported}] \"{reason}\"",
"en": "{reporter} has reported {reportee} for \"{reason}\"",
"na'vi": "{reporter}ìl fpìl futa {reported} fe' lu taluna {reason}.",
"cy": "Sylw! {reporter} wedi adrodd {reported} yn {channel}. Y rheswm a rhoddwyd oedd: \"{reason}\"",
"nl": "Waarschuwing: {reporter} heeft {reported} aangegeven in {channel}. De reden die gegeven werd was: \"{reason}\"",