diff options
Diffstat (limited to 'src/commands/cmd_notice.cpp')
-rw-r--r-- | src/commands/cmd_notice.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/cmd_notice.cpp b/src/commands/cmd_notice.cpp index 9cf4800a4..37f11eeb9 100644 --- a/src/commands/cmd_notice.cpp +++ b/src/commands/cmd_notice.cpp @@ -12,7 +12,6 @@ */ #include "inspircd.h" -#include "wildcard.h" #include "commands/cmd_notice.h" extern "C" DllExport Command* init_command(InspIRCd* Instance) @@ -42,7 +41,7 @@ CmdResult CommandNotice::Handle (const std::vector<std::string>& parameters, Use const char* servermask = (parameters[0].c_str()) + 1; FOREACH_MOD(I_OnText,OnText(user, (void*)parameters[0].c_str(), TYPE_SERVER, text, 0, exempt_list)); - if (match(ServerInstance->Config->ServerName,servermask)) + if (InspIRCd::Match(ServerInstance->Config->ServerName,servermask, NULL)) { user->SendAll("NOTICE", "%s", text); } |