|
@@ -514,7 +514,7 @@ static void event_resettraffic()
|
|
|
|
|
|
|
|
static void core_secondly()
|
|
static void core_secondly()
|
|
|
{
|
|
{
|
|
|
- static int cnt = 0, ison_cnt = 0;
|
|
|
|
|
|
|
+ static int cnt = 0;
|
|
|
time_t miltime;
|
|
time_t miltime;
|
|
|
|
|
|
|
|
if (fork_interval && backgrd && ((now - lastfork) > fork_interval))
|
|
if (fork_interval && backgrd && ((now - lastfork) > fork_interval))
|
|
@@ -526,16 +526,6 @@ static void core_secondly()
|
|
|
cnt = 0;
|
|
cnt = 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (!conf.bot->hub) {
|
|
|
|
|
- if (ison_time == 0) //If someone sets this to 0, all hell will break loose!
|
|
|
|
|
- ison_time = 10;
|
|
|
|
|
- if (ison_cnt >= ison_time) {
|
|
|
|
|
- server_send_ison();
|
|
|
|
|
- ison_cnt = 0;
|
|
|
|
|
- } else
|
|
|
|
|
- ++ison_cnt;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
memcpy(&nowtm, gmtime(&now), sizeof(struct tm));
|
|
memcpy(&nowtm, gmtime(&now), sizeof(struct tm));
|
|
|
if (nowtm.tm_min != lastmin) {
|
|
if (nowtm.tm_min != lastmin) {
|
|
|
int i = 0;
|
|
int i = 0;
|