]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hostchange.cpp
m_nokicks Remove u-line check, OnUserPreKick doesn't run in that case
[user/henk/code/inspircd.git] / src / modules / m_hostchange.cpp
index 6efa9974bc1bff4aa4022e94b64cb95983e96a49..508171c967216f74cf3ecb5428f27fda5c2fda67 100644 (file)
@@ -63,10 +63,10 @@ class ModuleHostChange : public Module
 
        virtual void OnRehash(User* user)
        {
-               ConfigReader Conf;
-               MySuffix = Conf.ReadValue("host","suffix",0);
-               MyPrefix = Conf.ReadValue("host","prefix","",0);
-               MySeparator = Conf.ReadValue("host","separator",".",0);
+               ConfigTag* host = ServerInstance->Config->ConfValue("host");
+               MySuffix = host->getString("suffix");
+               MyPrefix = host->getString("prefix");
+               MySeparator = host->getString("separator", ".");
                hostchanges.clear();
 
                std::set<std::string> dupecheck;