aboutsummaryrefslogtreecommitdiff
path: root/src/channels.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/channels.cpp
parentFix some Doxygen comment issues. (diff)
Convert various enums to strongly typed scoped enums.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index bc8b9b3a7..854cd7ec4 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -403,14 +403,14 @@ const char* Channel::ChanModes(bool showsecret)
void Channel::WriteNotice(const std::string& text, char status) const
{
- ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, this, text, MSG_NOTICE, status);
+ ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, this, text, MessageType::NOTICE, status);
Write(ServerInstance->GetRFCEvents().privmsg, privmsg, status);
}
void Channel::WriteRemoteNotice(const std::string& text, char status) const
{
WriteNotice(text, status);
- ServerInstance->PI->SendMessage(this, status, text, MSG_NOTICE);
+ ServerInstance->PI->SendMessage(this, status, text, MessageType::NOTICE);
}
/* returns the status character for a given user on a channel, e.g. @ for op,
@@ -479,6 +479,6 @@ void Membership::WriteNotice(const std::string& text) const
if (!localuser)
return;
- ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, this->chan, text, MSG_NOTICE);
+ ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, this->chan, text, MessageType::NOTICE);
localuser->Send(ServerInstance->GetRFCEvents().privmsg, privmsg);
}