forked from GitHub/dbot
fuck regex
This commit is contained in:
parent
9c6b78863e
commit
6b9cf29e95
@ -39,6 +39,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);
|
||||||
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])) {
|
||||||
match[1] = match[1].replace('\*', '');
|
match[1] = match[1].replace('\*', '');
|
||||||
this.userStack[event.server][match[1]](match[3].trim());
|
this.userStack[event.server][match[1]](match[3].trim());
|
||||||
|
Loading…
Reference in New Issue
Block a user