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:
parent
1d9765c95b
commit
57742d13f2
@ -53,7 +53,7 @@ var atheme = function(dbot) {
|
||||
|
||||
this.listener = function(event) {
|
||||
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);
|
||||
|
||||
if(flags && _.has(this.flagStack[event.server], flags[4])) {
|
||||
|
Loading…
Reference in New Issue
Block a user