From cadf228c3e66ce33c3599539b6650e26dfc3bff5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 22 Jan 2023 21:48:22 +0000 Subject: Convert various enums to strongly typed scoped enums. --- src/channels.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/channels.cpp') 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); } -- cgit v1.3.1-10-gc9f91