3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 00:22:35 +01:00

fix flag regex

This commit is contained in:
reality 2014-09-06 18:43:26 +00:00
parent 1d9765c95b
commit 57742d13f2

View File

@ -53,7 +53,7 @@ var atheme = function(dbot) {
this.listener = function(event) { this.listener = function(event) {
if(event.user === 'ChanServ') { if(event.user === 'ChanServ') {
var flags = event.params.match(/(\d+)\s+([^ ]+)\s+(\+\w+)\s+\((\#\w+)\)/), var flags = event.params.match(/(\d+)\s+([^ ]+)\s+(\+\w+)\s+\((\#[\w\.]+)\)/),
end = event.params.match(/end of \u0002(\#\w+)\u0002 flags listing/i); end = event.params.match(/end of \u0002(\#\w+)\u0002 flags listing/i);
if(flags && _.has(this.flagStack[event.server], flags[4])) { if(flags && _.has(this.flagStack[event.server], flags[4])) {