From 07f72a3122479bb10c923a5f72b316297e388a7f Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 25 Oct 2016 14:35:36 -0400 Subject: os_list: fix regex matching --- modules/commands/os_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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::iterator mit = modes.begin(), mit_end = modes.end(); mit != mit_end; ++mit) -- cgit