From ec73da976e7fac005a043bf270319d91a6c21b9c Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 9 Jun 2013 17:31:21 +0000 Subject: [PATCH] remove trailing * --- modules/nickserv/nickserv.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/nickserv/nickserv.js b/modules/nickserv/nickserv.js index 6306152..7c4c207 100644 --- a/modules/nickserv/nickserv.js +++ b/modules/nickserv/nickserv.js @@ -38,9 +38,8 @@ var nickserv = function(dbot) { } } } else if(event.action == '302') { - var match = event.params.match(/:(.*)=([^@]+)@(.+)$/); + var match = event.params.match(/:(.*)\*?=([^@]+)@(.+)$/); console.log(match); - console.log(event.params); if(match && _.has(this.userStack, event.server) && _.has(this.userStack[event.server], match[1])) { this.userStack[event.server][match[1]](match[3].trim()); }