this commit either a) Closes #598 or b) kills us all. Hold onto your coconuts.

This commit is contained in:
reality 2013-11-29 06:16:33 +00:00
parent e66df67913
commit eb348848e6

View File

@ -83,6 +83,11 @@ var commands = function(dbot) {
channel = event.input[1],
reason = event.input[3];
if(_.isUndefined(channel)) {
channel = event.channel.name;
}
channel = channel.trim();
this.api.kick(server, kickee, channel, reason + ' (requested by ' + kicker + ')');
dbot.api.report.notify('kick', server, event.rUser, channel, dbot.t('ckicked', {
@ -272,7 +277,7 @@ var commands = function(dbot) {
commands['~quiet'].access = 'voice';
commands['~unquiet'].access = 'voice';
commands['~ckick'].regex = [/^~ckick ([^ ]+) ([^ ]+) (.+)$/, 4];
commands['~ckick'].regex = /^~ckick (#[^ ]+ )?([^ ]+) ?(.*)?$/;
commands['~nban'].regex = /^~nban ([\d\.^ ]+)?([^ ]+) (.+)$/;
commands['~quiet'].regex = /^~quiet ([\d\.^ ]+)?(#[^ ]+ )?([^ ]+) ?(.*)?$/;
commands['~unquiet'].regex = /^~unquiet (#[^ ]+ )?([^ ]+) ?$/;