3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

only append period if it doesnt already exist

This commit is contained in:
reality 2013-07-28 16:26:54 +00:00
parent 914e5677b8
commit ea9d3ee0ff
2 changed files with 8 additions and 6 deletions

View File

@ -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) {

View File

@ -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.",