From 024b5a514c5ad7da8e875daa099afd6e03467b60 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 9 Jun 2013 17:37:03 +0000 Subject: [PATCH] use brackety thing for the whatsit --- modules/nickserv/nickserv.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/nickserv/nickserv.js b/modules/nickserv/nickserv.js index 81acea0..0fdc6e7 100644 --- a/modules/nickserv/nickserv.js +++ b/modules/nickserv/nickserv.js @@ -38,10 +38,9 @@ var nickserv = function(dbot) { } } } else if(event.action == '302') { - var match = event.params.match(/:(.+)\*?=([^@]+)@(.+)$/); - console.log(match); + var match = event.params.match(/:(.+)(\*)?=([^@]+)@(.+)$/); if(match && _.has(this.userStack, event.server) && _.has(this.userStack[event.server], match[1])) { - this.userStack[event.server][match[1]](match[3].trim()); + this.userStack[event.server][match[1]](match[4].trim()); } } }.bind(this);