mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
colours for the type thing
This commit is contained in:
parent
73ca19ca73
commit
46231c9e56
@ -127,13 +127,14 @@ var report = function(dbot) {
|
||||
'message': message
|
||||
}, function() {});
|
||||
|
||||
var notifier = event.user;
|
||||
var cChan = channelName;
|
||||
var notifier = event.user,
|
||||
cChan = channelName,
|
||||
type = 'notify';
|
||||
if(_.has(this.config.colours, event.server)) {
|
||||
var colours = this.config.colours[event.server];
|
||||
|
||||
notifier = colours['nicks'] + notifier + '\u000f';
|
||||
type = colours['type'] + 'notify' + '\u000f';
|
||||
type = colours['type'] + type + '\u000f';
|
||||
if(_.has(colours['channels'], channelName)) {
|
||||
cChan = colours['channels'][channelName] +
|
||||
cChan + "\u000f";
|
||||
@ -141,6 +142,7 @@ var report = function(dbot) {
|
||||
}
|
||||
|
||||
this.api.notify(event.server, channelName, dbot.t('notify', {
|
||||
'type': type,
|
||||
'channel': cChan,
|
||||
'notifier': notifier,
|
||||
'message': message
|
||||
|
@ -45,9 +45,9 @@
|
||||
"it": "Non sono presente in {channel}."
|
||||
},
|
||||
"notify": {
|
||||
"en": "[notify][{channel}][{notifier}] {message}",
|
||||
"fr": "[notify][{channel}][{notifier}] {message}",
|
||||
"it": "[notify][{channel}][{notifier}] {message}"
|
||||
"en": "[{type}][{channel}][{notifier}] {message}",
|
||||
"fr": "[{type}][{channel}][{notifier}] {message}",
|
||||
"it": "[{type}][{channel}][{notifier}] {message}"
|
||||
},
|
||||
"notified": {
|
||||
"en": "{user}: {channel} staff notified.",
|
||||
|
Loading…
Reference in New Issue
Block a user