mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
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 = {
|
||||
'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) {
|
||||
dbot.instance.connections[server].send('KICK ' + channel + ' ' + user + ' :' + msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user