diff options
| author | 2021-05-30 20:37:54 +0100 | |
|---|---|---|
| committer | 2021-05-30 20:37:54 +0100 | |
| commit | 02340285c564a7e82105137192d46d554a6fce3a (patch) | |
| tree | 696d1a6249841de62c3fed70310c2a347fc66732 /src/modules/m_conn_join.cpp | |
| parent | Add a workaround for a bug in GitHub Actions. (diff) | |
Added -Wshorten-64-to-32 and fixed all warnings.
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 a40f70327..7370cc568 100644 --- a/src/modules/m_conn_join.cpp +++ b/src/modules/m_conn_join.cpp @@ -82,7 +82,7 @@ class ModuleConnJoin : public Module { auto tag = ServerInstance->Config->ConfValue("autojoin"); defchans = tag->getString("channel"); - defdelay = tag->getDuration("delay", 0, 0, 60*15); + defdelay = static_cast<unsigned int>(tag->getDuration("delay", 0, 0, 60*15)); } void Prioritize() override @@ -97,7 +97,7 @@ class ModuleConnJoin : public Module return; std::string chanlist = localuser->GetClass()->config->getString("autojoin"); - unsigned int chandelay = localuser->GetClass()->config->getDuration("autojoindelay", 0, 0, 60*15); + unsigned int chandelay = static_cast<unsigned int>(localuser->GetClass()->config->getDuration("autojoindelay", 0, 0, 60*15)); if (chanlist.empty()) { |
