]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_conn_join.cpp
Use CommandBase::Params instead of std::vector<std::string>.
[user/henk/code/inspircd.git] / src / modules / m_conn_join.cpp
index b22dbdf4dc69bee8b5078b725b8b452f2a0c4592..7a06aedd3911c5cb7eeb967e8485aada4e306a0c 100644 (file)
@@ -75,10 +75,10 @@ class ModuleConnJoin : public Module
        {
                ConfigTag* tag = ServerInstance->Config->ConfValue("autojoin");
                defchans = tag->getString("channel");
-               defdelay = tag->getInt("delay", 0, 0, 60);
+               defdelay = tag->getDuration("delay", 0, 0, 60);
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                ServerInstance->Modules->SetPriority(this, I_OnPostConnect, PRIORITY_LAST);
        }
@@ -95,7 +95,7 @@ class ModuleConnJoin : public Module
                        return;
 
                std::string chanlist = localuser->GetClass()->config->getString("autojoin");
-               unsigned int chandelay = localuser->GetClass()->config->getInt("autojoindelay", 0, 0, 60);
+               unsigned int chandelay = localuser->GetClass()->config->getDuration("autojoindelay", 0, 0, 60);
 
                if (chanlist.empty())
                {