diff options
author | Peter Powell <petpow@saberuk.com> | 2018-12-13 14:01:17 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-12-13 14:20:43 +0000 |
commit | ee7db9bbfbb5f3bc7359d22e7021415aebddb9d2 (patch) | |
tree | b2a8f23312d173cc1523e3d86273fab9c2430eb0 /src/modules/m_cban.cpp | |
parent | 0f7cfd46ef2d277f5f82e34a2852c75212d75261 (diff) |
Store durations as unsigned long not long in XLine and m_filter.
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r-- | src/modules/m_cban.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index d1fb23620..250acd2b5 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -38,7 +38,7 @@ private: std::string matchtext; public: - CBan(time_t s_time, long d, const std::string& src, const std::string& re, const std::string& ch) + CBan(time_t s_time, unsigned long d, const std::string& src, const std::string& re, const std::string& ch) : XLine(s_time, d, src, re, "CBAN") , matchtext(ch) { @@ -70,7 +70,7 @@ class CBanFactory : public XLineFactory /** Generate a CBAN */ - XLine* Generate(time_t set_time, long duration, std::string source, std::string reason, std::string xline_specific_mask) CXX11_OVERRIDE + XLine* Generate(time_t set_time, unsigned long duration, const std::string& source, const std::string& reason, const std::string& xline_specific_mask) CXX11_OVERRIDE { return new CBan(set_time, duration, source, reason, xline_specific_mask); } |