From c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 25 Jan 2019 02:52:11 +0000 Subject: Replace the override macro with the override keyword. --- src/modules/m_chanhistory.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_chanhistory.cpp') diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index 1057e63b6..ef52a9447 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -55,7 +55,7 @@ class HistoryMode : public ParamMode > { } - ModeAction OnSet(User* source, Channel* channel, std::string& parameter) CXX11_OVERRIDE + ModeAction OnSet(User* source, Channel* channel, std::string& parameter) override { std::string::size_type colon = parameter.find(':'); if (colon == std::string::npos) @@ -130,7 +130,7 @@ class ModuleChanHistory { } - void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE + void ReadConfig(ConfigStatus& status) override { ConfigTag* tag = ServerInstance->Config->ConfValue("chanhistory"); m.maxlines = tag->getUInt("maxlines", 50, 1); @@ -138,12 +138,12 @@ class ModuleChanHistory dobots = tag->getBool("bots", true); } - ModResult OnBroadcastMessage(Channel* channel, const Server* server) CXX11_OVERRIDE + ModResult OnBroadcastMessage(Channel* channel, const Server* server) override { return channel->IsModeSet(m) ? MOD_RES_ALLOW : MOD_RES_PASSTHRU; } - void OnUserPostMessage(User* user, const MessageTarget& target, const MessageDetails& details) CXX11_OVERRIDE + void OnUserPostMessage(User* user, const MessageTarget& target, const MessageDetails& details) override { if ((target.type == MessageTarget::TYPE_CHANNEL) && (target.status == 0) && (details.type == MSG_PRIVMSG)) { @@ -158,7 +158,7 @@ class ModuleChanHistory } } - void OnPostJoin(Membership* memb) CXX11_OVERRIDE + void OnPostJoin(Membership* memb) override { LocalUser* localuser = IS_LOCAL(memb->user); if (!localuser) @@ -205,7 +205,7 @@ class ModuleChanHistory batchmanager->End(batch); } - Version GetVersion() CXX11_OVERRIDE + Version GetVersion() override { return Version("Provides channel history replayed on join", VF_VENDOR); } -- cgit v1.3.1-10-gc9f91