From e11893c0ef2512276957e45e96606763a2e7433c Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 1 Jul 2013 17:23:15 +0000 Subject: [PATCH] lol live debugging --- modules/kick/commands.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index b2d94c2..6616269 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -10,6 +10,8 @@ var commands = function(dbot) { channel = event.input[1], quietee = event.input[2]; + console.log(event.input); + if(!channel) { channel = event.channel.name; } @@ -238,7 +240,7 @@ var commands = function(dbot) { commands['~ckick'].regex = [/^~ckick ([^ ]+) ([^ ]+) (.+)$/, 4]; commands['~nban'].regex = /^~nban ([\d\.^ ]+)?([^ ]+) (.+)$/; - commands['~quiet'].regex = /^~quiet ([^ ]+)?([^ ]+)$/; + commands['~quiet'].regex = /^~quiet (#[^ ]+ )?([^ ]+)$/; return commands; };