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