summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/operserv/list.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/operserv/list.cpp b/modules/operserv/list.cpp
index 39ca2288b..77eaf56ed 100644
--- a/modules/operserv/list.cpp
+++ b/modules/operserv/list.cpp
@@ -182,8 +182,13 @@ 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))
+ 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, 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)