summaryrefslogtreecommitdiff
path: root/src/irc/flood/autoignore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/flood/autoignore.c')
-rw-r--r--src/irc/flood/autoignore.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/irc/flood/autoignore.c b/src/irc/flood/autoignore.c
index 44425a9f..7b386fe3 100644
--- a/src/irc/flood/autoignore.c
+++ b/src/irc/flood/autoignore.c
@@ -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);