aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_hidemode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_hidemode.cpp')
-rw-r--r--src/modules/m_hidemode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_hidemode.cpp b/src/modules/m_hidemode.cpp
index 5799459c8..ef53d99c8 100644
--- a/src/modules/m_hidemode.cpp
+++ b/src/modules/m_hidemode.cpp
@@ -48,11 +48,11 @@ class Settings
if (modename.empty())
throw ModuleException("<hidemode:mode> is empty at " + tag->source.str());
- unsigned int rank = tag->getUInt("rank", 0);
+ unsigned long rank = tag->getUInt("rank", 0);
if (!rank)
throw ModuleException("<hidemode:rank> must be greater than 0 at " + tag->source.str());
- ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Hiding the %s mode from users below rank %u", modename.c_str(), rank);
+ ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Hiding the %s mode from users below rank %lu", modename.c_str(), rank);
newranks.emplace(modename, rank);
}
rankstosee.swap(newranks);