diff options
| author | 2017-08-13 16:26:48 +0100 | |
|---|---|---|
| committer | 2017-09-03 20:20:30 +0100 | |
| commit | e7c829af5941c6a8a303ca75ed9ac47570347e41 (patch) | |
| tree | a40aa5b57346eb0b83e6f6b2cef1df36732800e5 /src/modules/m_conn_join.cpp | |
| parent | Move <dns:timeout> out of the core. (diff) | |
Convert a bunch of time-related config options to getDuration.
Diffstat (limited to 'src/modules/m_conn_join.cpp')
| -rw-r--r-- | src/modules/m_conn_join.cpp | 4 |
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()) { |
