diff options
| author | 2021-05-30 20:37:54 +0100 | |
|---|---|---|
| committer | 2021-05-30 20:37:54 +0100 | |
| commit | 02340285c564a7e82105137192d46d554a6fce3a (patch) | |
| tree | 696d1a6249841de62c3fed70310c2a347fc66732 /src/channels.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/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 332adcd44..d75cc6303 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -179,10 +179,10 @@ Channel* Channel::JoinUser(LocalUser* user, std::string cname, bool override, co */ if (!override) { - unsigned int maxchans = user->GetClass()->maxchans; + unsigned long maxchans = user->GetClass()->maxchans; if (user->IsOper()) { - unsigned int opermaxchans = ConvToNum<unsigned int>(user->oper->getConfig("maxchans")); + unsigned long opermaxchans = ConvToNum<unsigned int>(user->oper->getConfig("maxchans")); if (opermaxchans > maxchans) maxchans = opermaxchans; } |
