more appropriate note string

This commit is contained in:
reality 2018-02-10 12:59:02 +00:00
parent f097685c3d
commit ebb0a023c0
2 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,9 @@
"it": "{user} a {num} avvertenze. Ulteriori informazioni si trovano a {url}",
"de": "{user} hat {num} Verwarnung. Mehr Informationen sind auf {url} erhältlich"
},
"note_notify": {
"en": "{warner} has added a note regarding {warnee}: {reason}"
},
"warn_notify": {
"en": "{warner} has issued a warning to {warnee} for \"{reason}.\"",
"fr": "Attention : {warner} a donné un avertissement à {warnee} pour \"{reason}.\". Plus d'informations peuvent être trouvées ici : {url}",

View File

@ -17,7 +17,11 @@ var warning = function(dbot) {
'reason': reason,
'time': new Date().getTime()
}, function(err) {
var notifyString = dbot.t('warn_notify', {
var sType = 'warn_notify';
if(reason.match('#note')) {
sType = 'note_notify';
}
var notifyString = dbot.t(sType, {
'warner': warner.primaryNick,
'warnee': warnee.primaryNick,
'reason': reason,