mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
dont use coloured strings as db keys lololo
This commit is contained in:
parent
0bcf220d91
commit
73ca19ca73
@ -128,19 +128,20 @@ var report = function(dbot) {
|
|||||||
}, function() {});
|
}, function() {});
|
||||||
|
|
||||||
var notifier = event.user;
|
var notifier = event.user;
|
||||||
|
var cChan = channelName;
|
||||||
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'] + 'notify' + '\u000f';
|
||||||
if(_.has(colours['channels'], channelName)) {
|
if(_.has(colours['channels'], channelName)) {
|
||||||
channelName = colours['channels'][channelName] +
|
cChan = colours['channels'][channelName] +
|
||||||
channelName + "\u000f";
|
cChan + "\u000f";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.api.notify(event.server, channelName, dbot.t('notify', {
|
this.api.notify(event.server, channelName, dbot.t('notify', {
|
||||||
'channel': channelName,
|
'channel': cChan,
|
||||||
'notifier': notifier,
|
'notifier': notifier,
|
||||||
'message': message
|
'message': message
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user