From 9ca81e30948d13f5fe34029661b881c1532329e4 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 28 Jan 2016 18:41:44 +0000 Subject: [PATCH] fix regex --- modules/kick/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index 23b68b3..f11132a 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -344,8 +344,8 @@ var commands = function(dbot) { commands['~nunban'].access = 'power_user'; commands['~ckick'].regex = /^ckick (#[^ ]+ )?([^ ]+) ?(.*)?$/; - commands['~nban'].regex = /^nban (\d[\d\.dhms^ ]+)?([^ ]+) (.+)$/; - commands['~quiet'].regex = /^quiet (\d[\d\.hms^ ]+)?(#[^ ]+ )?([^ ]+) ?(.*)?$/; + commands['~nban'].regex = /^nban (\d[\d\.dhms]+)? ?([^ ]+) (.+)$/; + commands['~quiet'].regex = /^quiet (\d[\d\.hms]+)? ?(#[^ ]+ )?([^ ]+) ?(.*)?$/; commands['~unquiet'].regex = /^unquiet (#[^ ]+ )?([^ ]+) ?$/; return commands;