From 33bde312e8980e4966c8329b84087aaeb7fd00e6 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 9 Jun 2013 17:34:12 +0000 Subject: [PATCH] make the nick matcher in 302 non greedy --- modules/nickserv/nickserv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nickserv/nickserv.js b/modules/nickserv/nickserv.js index 7c4c207..81acea0 100644 --- a/modules/nickserv/nickserv.js +++ b/modules/nickserv/nickserv.js @@ -38,7 +38,7 @@ var nickserv = function(dbot) { } } } else if(event.action == '302') { - var match = event.params.match(/:(.*)\*?=([^@]+)@(.+)$/); + var match = event.params.match(/:(.+)\*?=([^@]+)@(.+)$/); console.log(match); if(match && _.has(this.userStack, event.server) && _.has(this.userStack[event.server], match[1])) { this.userStack[event.server][match[1]](match[3].trim());