From 6493de52b9c601b48ed582353388f1cd5a3380b3 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 14 Apr 2013 15:36:48 +0000 Subject: [PATCH] update ban and quiet in kick.api to use configured chanserv [#261] --- modules/kick/kick.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/kick/kick.js b/modules/kick/kick.js index 5308615..e5be508 100644 --- a/modules/kick/kick.js +++ b/modules/kick/kick.js @@ -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); }