3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-28 05:32:50 +01:00

make the nick matcher in 302 non greedy

This commit is contained in:
reality 2013-06-09 17:34:12 +00:00
parent ec73da976e
commit 33bde312e8

View File

@ -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());