From a4db7bf9af00b32d4f5c1922997d02b0b8be59e5 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sat, 6 Oct 2012 21:43:20 +0200 Subject: Remove usage of the deprecated ConfigReader --- src/modules/m_nonicks.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_nonicks.cpp') diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index f5c404682..4fa717d73 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -91,8 +91,7 @@ class ModuleNoNickChange : public Module virtual void OnRehash(User* user) { - ConfigReader Conf; - override = Conf.ReadFlag("nonicks", "operoverride", "no", 0); + override = ServerInstance->Config->ConfValue("nonicks")->getBool("operoverride", false); } }; -- cgit v1.2.3