aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_silence.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_silence.cpp
parentFix some Doxygen comment issues. (diff)
Convert various enums to strongly typed scoped enums.
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r--src/modules/m_silence.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index 3d53f00e3..35c33133b 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -485,9 +485,9 @@ public:
{
if (is_ctcp)
flag = SilenceEntry::SF_CTCP_CHANNEL;
- else if (details.type == MSG_NOTICE)
+ else if (details.type == MessageType::NOTICE)
flag = SilenceEntry::SF_NOTICE_CHANNEL;
- else if (details.type == MSG_PRIVMSG)
+ else if (details.type == MessageType::PRIVMSG)
flag = SilenceEntry::SF_PRIVMSG_CHANNEL;
return BuildChannelExempts(user, target.Get<Channel>(), flag, details.exemptions);
@@ -496,9 +496,9 @@ public:
{
if (is_ctcp)
flag = SilenceEntry::SF_CTCP_USER;
- else if (details.type == MSG_NOTICE)
+ else if (details.type == MessageType::NOTICE)
flag = SilenceEntry::SF_NOTICE_USER;
- else if (details.type == MSG_PRIVMSG)
+ else if (details.type == MessageType::PRIVMSG)
flag = SilenceEntry::SF_PRIVMSG_USER;
if (!CanReceiveMessage(user, target.Get<User>(), flag))