aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_hidemode.cpp
diff options
context:
space:
mode:
authorGravatar Dominic Hamon2021-05-30 20:37:54 +0100
committerGravatar GitHub2021-05-30 20:37:54 +0100
commit02340285c564a7e82105137192d46d554a6fce3a (patch)
tree696d1a6249841de62c3fed70310c2a347fc66732 /src/modules/m_hidemode.cpp
parentAdd a workaround for a bug in GitHub Actions. (diff)
Added -Wshorten-64-to-32 and fixed all warnings.
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);