From 228ac9496b07a10bb0e3547d3991384739c37506 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 27 Jan 2013 17:22:18 +0100 Subject: m_chanhistory Fix durations containing 'S' being rejected --- src/modules/m_chanhistory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index 5cbc564fb..e48e67fe5 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -37,12 +37,12 @@ struct HistoryList class HistoryMode : public ModeHandler { - bool IsValidDuration(const std::string duration) + bool IsValidDuration(const std::string& duration) { for (std::string::const_iterator i = duration.begin(); i != duration.end(); ++i) { unsigned char c = *i; - if (((c >= '0') && (c <= '9')) || (c == 's') || (c != 'S')) + if (((c >= '0') && (c <= '9')) || (c == 's') || (c == 'S')) continue; if (duration_multi[c] == 1) -- cgit v1.2.3