summaryrefslogtreecommitdiff
path: root/src/modules/m_callerid.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-10-06 21:43:20 +0200
committerattilamolnar <attilamolnar@hush.com>2012-11-12 21:48:42 +0100
commita4db7bf9af00b32d4f5c1922997d02b0b8be59e5 (patch)
tree2fd4c4ee2344300285f919968760f27f9ca41df4 /src/modules/m_callerid.cpp
parent62149fcd86711d3ca7457a327c4e8fa2e7d85582 (diff)
Remove usage of the deprecated ConfigReader
Diffstat (limited to 'src/modules/m_callerid.cpp')
-rw-r--r--src/modules/m_callerid.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index f24c38b65..e28a4084b 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -412,11 +412,11 @@ public:
virtual void OnRehash(User* user)
{
- ConfigReader Conf;
- cmd.maxaccepts = Conf.ReadInteger("callerid", "maxaccepts", "16", 0, true);
- operoverride = Conf.ReadFlag("callerid", "operoverride", "0", 0);
- tracknick = Conf.ReadFlag("callerid", "tracknick", "0", 0);
- notify_cooldown = Conf.ReadInteger("callerid", "cooldown", "60", 0, true);
+ ConfigTag* tag = ServerInstance->Config->ConfValue("callerid");
+ cmd.maxaccepts = tag->getInt("maxaccepts", 16);
+ operoverride = tag->getBool("operoverride");
+ tracknick = tag->getBool("tracknick");
+ notify_cooldown = tag->getInt("cooldown", 60);
}
};