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:
parent
821d8407c1
commit
d2332058fc
@ -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]);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user