update ban and quiet in kick.api to use configured chanserv [#261]

This commit is contained in:
reality 2013-04-14 15:33:55 +00:00
parent f5fb2322b1
commit ce092b688e
2 changed files with 7 additions and 2 deletions

View File

@ -3,5 +3,6 @@
"dependencies": [ "command", "report", "users" ],
"help": "http://github.com/reality/depressionbot/blob/master/modules/kick/README.md",
"ignorable": true,
"countSilently": true
"countSilently": true,
"chanserv": "ChanServ"
}

View File

@ -4,7 +4,11 @@ var kick = function(dbot) {
this.api = {
'ban': function(server, user, channel) {
dbot.instance.connections[server].send('MODE ' + channel + ' +b ' + user + '!*@*');
dbot.say(event.server, this.config.chanserv, '!ban ' + user)
},
'quiet': function(server, user, channel) {
dbot.say(event.server, this.config.chanserv, '!quiet ' + user)
},
'kick': function(server, user, channel, msg) {