From 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Apr 2021 23:42:15 +0100 Subject: Fix a ton of pedantic compiler warnings. --- src/modules/m_exemptchanops.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_exemptchanops.cpp') diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp index 37146e03c..b44a825fb 100644 --- a/src/modules/m_exemptchanops.cpp +++ b/src/modules/m_exemptchanops.cpp @@ -40,12 +40,12 @@ class ExemptChanOps : public ListModeBase syntax = ":"; } - static PrefixMode* FindMode(const std::string& mode) + static PrefixMode* FindMode(const std::string& pmode) { - if (mode.length() == 1) - return ServerInstance->Modes.FindPrefixMode(mode[0]); + if (pmode.length() == 1) + return ServerInstance->Modes.FindPrefixMode(pmode[0]); - ModeHandler* mh = ServerInstance->Modes.FindMode(mode, MODETYPE_CHANNEL); + ModeHandler* mh = ServerInstance->Modes.FindMode(pmode, MODETYPE_CHANNEL); return mh ? mh->IsPrefixMode() : NULL; } -- cgit v1.3.1-10-gc9f91