diff options
author | Peter Powell <petpow@saberuk.com> | 2017-11-17 00:02:03 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-11-17 15:33:01 +0000 |
commit | 36040be2952186d56a6646ee7d972aaafdd4e31a (patch) | |
tree | 72be7108a94dd6bd0ea2842c53ba8890c44d12d8 /src/modules/m_chanhistory.cpp | |
parent | 3b51dfb1d611a874c3f1138d1c1ec1bb8984334c (diff) |
Fix a ton of -Wsign-conversion warnings.
Diffstat (limited to 'src/modules/m_chanhistory.cpp')
-rw-r--r-- | src/modules/m_chanhistory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index a0929a0d0..a969ab2e2 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -70,8 +70,8 @@ class HistoryMode : public ParamMode<HistoryMode, SimpleExtItem<HistoryList> > return MODEACTION_DENY; unsigned int len = ConvToInt(parameter.substr(0, colon)); - int time = InspIRCd::Duration(duration); - if (len == 0 || time < 0) + unsigned int time = InspIRCd::Duration(duration); + if (len == 0 || time == 0) return MODEACTION_DENY; if (len > maxlines && IS_LOCAL(source)) return MODEACTION_DENY; |