forked from GitHub/dbot
fix report output
This commit is contained in:
parent
e6b764bd25
commit
0ced8cf27c
@ -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', {
|
||||
|
@ -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}\"",
|
||||
|
Loading…
Reference in New Issue
Block a user