joinfloodsettings(int b, int c) : secs(b), joins(c)
{
- reset = ServerInstance->Time() + secs;
+ reset = time(NULL) + secs;
counter = 0;
locked = false;
};
void addjoin()
{
counter++;
- if (ServerInstance->Time() > reset)
+ if (time(NULL) > reset)
{
counter = 0;
- reset = ServerInstance->Time() + secs;
+ reset = time(NULL) + secs;
}
}
{
if (locked)
{
- if (ServerInstance->Time() > unlocktime)
+ if (time(NULL) > unlocktime)
{
locked = false;
return false;
void lock()
{
locked = true;
- unlocktime = ServerInstance->Time() + 60;
+ unlocktime = time(NULL) + 60;
}
};
virtual Version GetVersion()
{
- return Version(1, 0, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
+ return Version(1, 1, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
}
};