diff options
| author | 2021-05-30 20:37:54 +0100 | |
|---|---|---|
| committer | 2021-05-30 20:37:54 +0100 | |
| commit | 02340285c564a7e82105137192d46d554a6fce3a (patch) | |
| tree | 696d1a6249841de62c3fed70310c2a347fc66732 /src/modules/m_hidemode.cpp | |
| parent | Add 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.cpp | 4 |
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); |
