aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_botmode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-22 21:48:22 +0000
committerGravatar Sadie Powell2023-01-22 22:36:31 +0000
commitcadf228c3e66ce33c3599539b6650e26dfc3bff5 (patch)
tree5b4fc56f9e4e6a63900fedd128fe920af2d73349 /src/modules/m_botmode.cpp
parentFix some Doxygen comment issues. (diff)
Convert various enums to strongly typed scoped enums.
Diffstat (limited to 'src/modules/m_botmode.cpp')
-rw-r--r--src/modules/m_botmode.cpp4
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;
}