1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

multiprotocol fixes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@689 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-09-28 00:25:14 +00:00 committed by cras
parent 796531e31f
commit 49b22f8b31
2 changed files with 15 additions and 0 deletions

View File

@ -90,6 +90,9 @@ static void autoignore_timeout_server(IRC_SERVER_REC *server)
g_return_if_fail(server != NULL);
if (!IS_IRC_SERVER(server))
return;
mserver = MODULE_DATA(server);
t = time(NULL);
t -= mserver->ignore_lastcheck;
@ -119,6 +122,9 @@ static void autoignore_init_server(IRC_SERVER_REC *server)
g_return_if_fail(server != NULL);
if (!IS_IRC_SERVER(server))
return;
mserver = MODULE_DATA(server);
mserver->ignorelist = NULL;
mserver->ignore_lastcheck = time(NULL)-AUTOIGNORE_TIMECHECK;
@ -130,6 +136,9 @@ static void autoignore_deinit_server(IRC_SERVER_REC *server)
g_return_if_fail(server != NULL);
if (!IS_IRC_SERVER(server))
return;
mserver = MODULE_DATA(server);
while (mserver->ignorelist != NULL)
autoignore_remove_rec(server, (AUTOIGNORE_REC *) mserver->ignorelist->data);

View File

@ -101,6 +101,9 @@ static void flood_init_server(IRC_SERVER_REC *server)
g_return_if_fail(server != NULL);
if (!IS_IRC_SERVER(server))
return;
rec = g_new0(MODULE_SERVER_REC, 1);
MODULE_DATA_SET(server, rec);
@ -129,6 +132,9 @@ static void flood_deinit_server(IRC_SERVER_REC *server)
g_return_if_fail(server != NULL);
if (!IS_IRC_SERVER(server))
return;
mserver = MODULE_DATA(server);
if (mserver != NULL && mserver->floodlist != NULL) {
flood_timecheck = 0;