3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

no strict match on chan

This commit is contained in:
reality 2014-10-03 20:56:11 +00:00
parent a7ccb5ff14
commit 881f828f34

View File

@ -131,7 +131,7 @@ var atheme = function(dbot) {
} }
} else { // PRIVMSG } else { // PRIVMSG
var akill = event.message.match(/([^ ]+) AKILL:ADD: ([^ ]+) \(reason: (.+)(\) )\(duration: ([^,)]+)/); var akill = event.message.match(/([^ ]+) AKILL:ADD: ([^ ]+) \(reason: (.+)(\) )\(duration: ([^,)]+)/);
if(event.channel === '#services' && akill) { if(event.channel == '#services' && akill) {
var channel = dbot.config.servers[server].admin_channel; var channel = dbot.config.servers[server].admin_channel;
dbot.api.report.notify('ban', 'tripsit', akill[1], channel, dbot.t('akill', { dbot.api.report.notify('ban', 'tripsit', akill[1], channel, dbot.t('akill', {
'host': akill[2], 'host': akill[2],