mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 12:12:35 +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
|
'message': message
|
||||||
}, function() {});
|
}, function() {});
|
||||||
|
|
||||||
var notifier = event.user;
|
var notifier = event.user,
|
||||||
var cChan = channelName;
|
cChan = channelName,
|
||||||
|
type = 'notify';
|
||||||
if(_.has(this.config.colours, event.server)) {
|
if(_.has(this.config.colours, event.server)) {
|
||||||
var colours = this.config.colours[event.server];
|
var colours = this.config.colours[event.server];
|
||||||
|
|
||||||
notifier = colours['nicks'] + notifier + '\u000f';
|
notifier = colours['nicks'] + notifier + '\u000f';
|
||||||
type = colours['type'] + 'notify' + '\u000f';
|
type = colours['type'] + type + '\u000f';
|
||||||
if(_.has(colours['channels'], channelName)) {
|
if(_.has(colours['channels'], channelName)) {
|
||||||
cChan = colours['channels'][channelName] +
|
cChan = colours['channels'][channelName] +
|
||||||
cChan + "\u000f";
|
cChan + "\u000f";
|
||||||
@ -141,6 +142,7 @@ var report = function(dbot) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.api.notify(event.server, channelName, dbot.t('notify', {
|
this.api.notify(event.server, channelName, dbot.t('notify', {
|
||||||
|
'type': type,
|
||||||
'channel': cChan,
|
'channel': cChan,
|
||||||
'notifier': notifier,
|
'notifier': notifier,
|
||||||
'message': message
|
'message': message
|
||||||
|
@ -45,9 +45,9 @@
|
|||||||
"it": "Non sono presente in {channel}."
|
"it": "Non sono presente in {channel}."
|
||||||
},
|
},
|
||||||
"notify": {
|
"notify": {
|
||||||
"en": "[notify][{channel}][{notifier}] {message}",
|
"en": "[{type}][{channel}][{notifier}] {message}",
|
||||||
"fr": "[notify][{channel}][{notifier}] {message}",
|
"fr": "[{type}][{channel}][{notifier}] {message}",
|
||||||
"it": "[notify][{channel}][{notifier}] {message}"
|
"it": "[{type}][{channel}][{notifier}] {message}"
|
||||||
},
|
},
|
||||||
"notified": {
|
"notified": {
|
||||||
"en": "{user}: {channel} staff notified.",
|
"en": "{user}: {channel} staff notified.",
|
||||||
|
Loading…
Reference in New Issue
Block a user