3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

remove trailing *

This commit is contained in:
reality 2013-06-09 17:31:21 +00:00
parent e22c42f560
commit ec73da976e

View File

@ -38,9 +38,8 @@ var nickserv = function(dbot) {
}
}
} else if(event.action == '302') {
var match = event.params.match(/:(.*)=([^@]+)@(.+)$/);
var match = event.params.match(/:(.*)\*?=([^@]+)@(.+)$/);
console.log(match);
console.log(event.params);
if(match && _.has(this.userStack, event.server) && _.has(this.userStack[event.server], match[1])) {
this.userStack[event.server][match[1]](match[3].trim());
}