summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-01-27 17:22:18 +0100
committerattilamolnar <attilamolnar@hush.com>2013-01-27 17:22:18 +0100
commit228ac9496b07a10bb0e3547d3991384739c37506 (patch)
treed572e88130587fd85358f0333348bb0ce1c654a5 /src
parent0e56edffa3eb59011f07e05068ac1ab84357558b (diff)
m_chanhistory Fix durations containing 'S' being rejected
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanhistory.cpp4
1 files changed, 2 insertions, 2 deletions
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)