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_monitor.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_monitor.cpp')
| -rw-r--r-- | src/modules/m_monitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_monitor.cpp b/src/modules/m_monitor.cpp index 4fd656a13..1ac0b3c63 100644 --- a/src/modules/m_monitor.cpp +++ b/src/modules/m_monitor.cpp @@ -118,7 +118,7 @@ class IRCv3::Monitor::Manager WR_INVALIDNICK }; - WatchResult Watch(LocalUser* user, const std::string& nick, unsigned int maxwatch) + WatchResult Watch(LocalUser* user, const std::string& nick, unsigned long maxwatch) { if (!ServerInstance->IsNick(nick)) return WR_INVALIDNICK; @@ -301,7 +301,7 @@ class CommandMonitor : public SplitCommand } public: - unsigned int maxmonitor; + unsigned long maxmonitor; CommandMonitor(Module* mod, IRCv3::Monitor::Manager& managerref) : SplitCommand(mod, "MONITOR", 1) |
