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:
parent
ec73da976e
commit
33bde312e8
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user