forked from GitHub/dbot
only append period if it doesnt already exist
This commit is contained in:
parent
914e5677b8
commit
ea9d3ee0ff
@ -64,6 +64,8 @@ var report = function(dbot) {
|
||||
nick = event.input[2],
|
||||
reason = event.input[3];
|
||||
|
||||
if(reason.charAt(reason.length - 1) != '.') reason += '.';
|
||||
|
||||
dbot.api.users.resolveUser(event.server, nick, function(reportee) {
|
||||
if(_.has(event.allChannels, channelName)) {
|
||||
if(reportee) {
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"report": {
|
||||
"en": "Attention: {reporter} has reported {reported} in {channel}. The reason given was: \"{reason}.\"",
|
||||
"en": "Attention: {reporter} has reported {reported} in {channel}. The reason given was: \"{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}.\"",
|
||||
"de": "Achtung: {reporter} hat {reported} in {channel} gemeldet. Grund: \"{reason}.\"",
|
||||
"fr": "Attention : {reporter} a reporté {reported} dans {channel}. Raison donnée : \"{reason}.\"",
|
||||
"it": "Attentzone : {reporter} ha segnalato {reported} in {channel}. Motivo : \"{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}\"",
|
||||
"de": "Achtung: {reporter} hat {reported} in {channel} gemeldet. Grund: \"{reason}\"",
|
||||
"fr": "Attention : {reporter} a reporté {reported} dans {channel}. Raison donnée : \"{reason}\"",
|
||||
"it": "Attentzone : {reporter} ha segnalato {reported} in {channel}. Motivo : \"{reason}\""
|
||||
},
|
||||
"reported": {
|
||||
"en": "Thank you, {reported} has been reported to the channel administrators.",
|
||||
|
Loading…
Reference in New Issue
Block a user