3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

use brackety thing for the whatsit

This commit is contained in:
reality 2013-06-09 17:37:03 +00:00
parent 33bde312e8
commit 024b5a514c

View File

@ -38,10 +38,9 @@ var nickserv = function(dbot) {
}
}
} else if(event.action == '302') {
var match = event.params.match(/:(.+)\*?=([^@]+)@(.+)$/);
console.log(match);
var match = event.params.match(/:(.+)(\*)?=([^@]+)@(.+)$/);
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[4].trim());
}
}
}.bind(this);