summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-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)