summaryrefslogtreecommitdiff
path: root/src/modules/m_remove.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_remove.cpp')
-rw-r--r--src/modules/m_remove.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp
index 454780d03..7d0ae7eea 100644
--- a/src/modules/m_remove.cpp
+++ b/src/modules/m_remove.cpp
@@ -219,8 +219,7 @@ class ModuleRemove : public Module
virtual void OnRehash(User* user)
{
- ConfigReader conf;
- supportnokicks = conf.ReadFlag("remove", "supportnokicks", 0);
+ supportnokicks = ServerInstance->Config->ConfValue("remove")->getBool("supportnokicks");
}
virtual ~ModuleRemove()