aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_exemptchanops.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-04 23:42:15 +0100
committerGravatar Sadie Powell2021-04-04 23:42:15 +0100
commit7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch)
treef5a81d03f572392e7547d58f979fdd488de6ff0b /src/modules/m_exemptchanops.cpp
parentRemove the unused ExitCodes array. (diff)
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/modules/m_exemptchanops.cpp')
-rw-r--r--src/modules/m_exemptchanops.cpp8
1 files changed, 4 insertions, 4 deletions
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 = "<restriction>:<prefix>";
}
- 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;
}