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

push the right way around

This commit is contained in:
Luke Slater 2011-10-10 13:30:44 +01:00
parent 821d8407c1
commit d2332058fc

View File

@ -47,9 +47,9 @@ var adminCommands = function(dbot) {
'ban': function(data, params) { 'ban': function(data, params) {
if(dbot.db.bans.hasOwnProperty(params[2])) { if(dbot.db.bans.hasOwnProperty(params[2])) {
dbot.db.bans[params[2]] = [ params[1] ];
} else {
dbot.db.bans[params[2]].push(params[1]); dbot.db.bans[params[2]].push(params[1]);
} else {
dbot.db.bans[params[2]] = [ params[1] ];
} }
dbot.say(data.channel, params[1] + ' banned from ' + params[2]); dbot.say(data.channel, params[1] + ' banned from ' + params[2]);
}, },