]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Raise the maximum time period for the conn_join module to 15m.
authorPeter Powell <petpow@saberuk.com>
Sun, 28 Apr 2019 16:40:00 +0000 (17:40 +0100)
committerPeter Powell <petpow@saberuk.com>
Sun, 28 Apr 2019 16:41:12 +0000 (17:41 +0100)
src/modules/m_conn_join.cpp

index 7a06aedd3911c5cb7eeb967e8485aada4e306a0c..e5df97d9018bfac11dcb2ff057fd7d8b9e12a0e5 100644 (file)
@@ -75,7 +75,7 @@ class ModuleConnJoin : public Module
        {
                ConfigTag* tag = ServerInstance->Config->ConfValue("autojoin");
                defchans = tag->getString("channel");
-               defdelay = tag->getDuration("delay", 0, 0, 60);
+               defdelay = tag->getDuration("delay", 0, 0, 60*15);
        }
 
        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->getDuration("autojoindelay", 0, 0, 60);
+               unsigned int chandelay = localuser->GetClass()->config->getDuration("autojoindelay", 0, 0, 60*15);
 
                if (chanlist.empty())
                {