diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_notice.cpp | 2 | ||||
-rw-r--r-- | src/commands/cmd_privmsg.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_notice.cpp b/src/commands/cmd_notice.cpp index ee9868fb3..1a47b56fb 100644 --- a/src/commands/cmd_notice.cpp +++ b/src/commands/cmd_notice.cpp @@ -51,7 +51,7 @@ CmdResult CommandNotice::Handle (const char* const* parameters, int pcnt, User * } char status = 0; const char* target = parameters[0]; - if ((*target == '@') || (*target == '%') || (*target == '+')) + if (ServerInstance->Modes->FindPrefix(*target)) { status = *target; target++; diff --git a/src/commands/cmd_privmsg.cpp b/src/commands/cmd_privmsg.cpp index c9100dcd9..9ce089dc0 100644 --- a/src/commands/cmd_privmsg.cpp +++ b/src/commands/cmd_privmsg.cpp @@ -50,7 +50,7 @@ CmdResult CommandPrivmsg::Handle (const char* const* parameters, int pcnt, User } char status = 0; const char* target = parameters[0]; - if ((*target == '@') || (*target == '%') || (*target == '+')) + if (ServerInstance->Modes->FindPrefix(*target)) { status = *target; target++; |