summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-12 20:58:14 +0200
committerattilamolnar <attilamolnar@hush.com>2012-07-12 20:58:14 +0200
commitf64ced2653006c472bfd2ea5b117dddfac61adcb (patch)
treec15b0f367865337ee5ebfb77e1fb9bc1cfb55a70
parent53ab523021bbb7bf318bb5e53d15c783685e587b (diff)
m_chanhistory Read the boolean config entry with getBool()
-rw-r--r--src/modules/m_chanhistory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp
index 64e573286..16eba953f 100644
--- a/src/modules/m_chanhistory.cpp
+++ b/src/modules/m_chanhistory.cpp
@@ -129,7 +129,7 @@ class ModuleChanHistory : public Module
{
ConfigTag* tag = ServerInstance->Config->ConfValue("chanhistory");
m.maxlines = tag->getInt("maxlines", 50);
- sendnotice = tag->getInt("notice", true);
+ sendnotice = tag->getBool("notice", true);
}
void OnUserMessage(User* user,void* dest,int target_type, const std::string &text, char status, const CUList&)