mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 06:19:24 +01:00
more appropriate note string
This commit is contained in:
parent
f097685c3d
commit
ebb0a023c0
@ -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}",
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user