diff options
Diffstat (limited to 'src/modules/m_botmode.cpp')
| -rw-r--r-- | src/modules/m_botmode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index 5d309e58a..0060bb7da 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -85,7 +85,7 @@ public: ModResult OnUserPreMessage(User* user, const MessageTarget& target, MessageDetails& details) override { // Allow sending if forcenotice is off, the user is not a bot, or if the message is a notice. - if (!forcenotice || !user->IsModeSet(bm) || details.type == MSG_NOTICE) + if (!forcenotice || !user->IsModeSet(bm) || details.type == MessageType::NOTICE) return MOD_RES_PASSTHRU; // Allow sending PRIVMSGs to services pseudoclients. @@ -93,7 +93,7 @@ public: return MOD_RES_PASSTHRU; // Force the message to be broadcast as a NOTICE. - details.type = MSG_NOTICE; + details.type = MessageType::NOTICE; return MOD_RES_PASSTHRU; } |
