X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_conn_join.cpp;h=7a06aedd3911c5cb7eeb967e8485aada4e306a0c;hb=384ef31bc01e4a1a2e59d082c9066002410ba54a;hp=b22dbdf4dc69bee8b5078b725b8b452f2a0c4592;hpb=5267fb9d362aeb326c9e64f7171c957f76776f90;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_conn_join.cpp b/src/modules/m_conn_join.cpp index b22dbdf4d..7a06aedd3 100644 --- a/src/modules/m_conn_join.cpp +++ b/src/modules/m_conn_join.cpp @@ -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()) {