3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

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

This commit is contained in:
reality 2013-04-14 15:36:48 +00:00
parent c1670dcbe2
commit 6493de52b9

View File

@ -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);
} }