forked from GitHub/dbot
update ban and quiet in kick.api to use configured chanserv [#261]
This commit is contained in:
parent
c1670dcbe2
commit
6493de52b9
@ -4,9 +4,13 @@ var kick = function(dbot) {
|
|||||||
|
|
||||||
this.api = {
|
this.api = {
|
||||||
'ban': function(server, user, channel) {
|
'ban': function(server, user, channel) {
|
||||||
dbot.instance.connections[server].send('MODE ' + channel + ' +b ' + user + '!*@*');
|
dbot.say(server, this.config.chanserv, 'ban ' + channel + ' ' + user)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'quiet': function(server, user, channel) {
|
||||||
|
dbot.say(server, this.config.chanserv, 'quiet ' + channel + ' ' + user)
|
||||||
|
}
|
||||||
|
|
||||||
'kick': function(server, user, channel, msg) {
|
'kick': function(server, user, channel, msg) {
|
||||||
dbot.instance.connections[server].send('KICK ' + channel + ' ' + user + ' :' + msg);
|
dbot.instance.connections[server].send('KICK ' + channel + ' ' + user + ' :' + msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user