forked from GitHub/dbot
make the nick matcher in 302 non greedy
This commit is contained in:
parent
ec73da976e
commit
33bde312e8
@ -38,7 +38,7 @@ var nickserv = function(dbot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(event.action == '302') {
|
} else if(event.action == '302') {
|
||||||
var match = event.params.match(/:(.*)\*?=([^@]+)@(.+)$/);
|
var match = event.params.match(/:(.+)\*?=([^@]+)@(.+)$/);
|
||||||
console.log(match);
|
console.log(match);
|
||||||
if(match && _.has(this.userStack, event.server) && _.has(this.userStack[event.server], match[1])) {
|
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[3].trim());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user