diff options
author | Adam <Adam@anope.org> | 2016-10-25 14:35:36 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-25 14:35:36 -0400 |
commit | 07f72a3122479bb10c923a5f72b316297e388a7f (patch) | |
tree | 65fcf799b3eb0bba1c7f4170418c93399c96fe6f | |
parent | f4543edfe25d3c067f4884df1c0b101161342318 (diff) |
os_list: fix regex matching
-rw-r--r-- | modules/commands/os_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_list.cpp b/modules/commands/os_list.cpp index 27e02cb0a..07eb9f30d 100644 --- a/modules/commands/os_list.cpp +++ b/modules/commands/os_list.cpp @@ -181,7 +181,7 @@ class CommandOSUserList : public Command if (!pattern.empty()) { Anope::string mask = u2->nick + "!" + u2->GetIdent() + "@" + u2->GetDisplayedHost(), mask2 = u2->nick + "!" + u2->GetIdent() + "@" + u2->host, mask3 = u2->nick + "!" + u2->GetIdent() + "@" + u2->ip.addr(); - if (!Anope::Match(mask, pattern) && !Anope::Match(mask2, pattern) && !Anope::Match(mask3, pattern)) + if (!Anope::Match(mask, pattern, false, true) && !Anope::Match(mask2, pattern, false, true) && !Anope::Match(mask3, pattern, false, true)) continue; if (!modes.empty()) for (std::set<Anope::string>::iterator mit = modes.begin(), mit_end = modes.end(); mit != mit_end; ++mit) |