From 9226da5b76cfd7fc2e0dd26559fe79a51f12535b Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 9 Jun 2013 17:51:49 +0000 Subject: [PATCH] that should do it did i mention fuck regex --- modules/nickserv/nickserv.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nickserv/nickserv.js b/modules/nickserv/nickserv.js index b0e52db..72abd24 100644 --- a/modules/nickserv/nickserv.js +++ b/modules/nickserv/nickserv.js @@ -39,9 +39,9 @@ var nickserv = function(dbot) { } } else if(event.action == '302') { var match = event.params.match(/:(.+)=([^@]+)@(.+)$/); - console.log(match); + + if(match[1]) match[1] = match[1].replace('\*', ''); if(match && _.has(this.userStack, event.server) && _.has(this.userStack[event.server], match[1])) { - match[1] = match[1].replace('\*', ''); this.userStack[event.server][match[1]](match[3].trim()); } }