diff --git a/modules/report/report.js b/modules/report/report.js index a487d07..6715b63 100644 --- a/modules/report/report.js +++ b/modules/report/report.js @@ -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 diff --git a/modules/report/strings.json b/modules/report/strings.json index 0b94bb5..935bd0b 100644 --- a/modules/report/strings.json +++ b/modules/report/strings.json @@ -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.",