summaryrefslogtreecommitdiff
path: root/src/modules/m_conn_join.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_conn_join.cpp')
-rw-r--r--src/modules/m_conn_join.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_conn_join.cpp b/src/modules/m_conn_join.cpp
index bd8d89dc9..7a06aedd3 100644
--- a/src/modules/m_conn_join.cpp
+++ b/src/modules/m_conn_join.cpp
@@ -75,7 +75,7 @@ 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() CXX11_OVERRIDE
@@ -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())
{