Raise the maximum time period for the conn_join module to 15m.

This commit is contained in:
Peter Powell 2019-04-28 17:40:00 +01:00
parent 9986aa8b3d
commit 1041cb9329

View 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())
{