forked from GitHub/dbot
update ban and quiet in kick.api to use configured chanserv [#261]
This commit is contained in:
parent
f5fb2322b1
commit
ce092b688e
@ -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"
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user