From ee7db9bbfbb5f3bc7359d22e7021415aebddb9d2 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 13 Dec 2018 14:01:17 +0000 Subject: Store durations as unsigned long not long in XLine and m_filter. --- src/modules/m_svshold.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_svshold.cpp') diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index 2b38653c5..8eecd377d 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -36,7 +36,7 @@ class SVSHold : public XLine public: std::string nickname; - SVSHold(time_t s_time, long d, const std::string& src, const std::string& re, const std::string& nick) + SVSHold(time_t s_time, unsigned long d, const std::string& src, const std::string& re, const std::string& nick) : XLine(s_time, d, src, re, "SVSHOLD") { this->nickname = nick; @@ -78,7 +78,7 @@ class SVSHoldFactory : public XLineFactory /** Generate a shun */ - 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 SVSHold(set_time, duration, source, reason, xline_specific_mask); } -- cgit v1.3.1-10-gc9f91