summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irc/flood/flood.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/flood/flood.c b/src/irc/flood/flood.c
index edd6566b..0c6a9361 100644
--- a/src/irc/flood/flood.c
+++ b/src/irc/flood/flood.c
@@ -85,6 +85,9 @@ static int flood_timeout(void)
for (tmp = servers; tmp != NULL; tmp = tmp->next) {
IRC_SERVER_REC *rec = tmp->data;
+ if (!IS_IRC_SERVER(rec))
+ continue;
+
mserver = MODULE_DATA(rec);
g_hash_table_foreach_remove(mserver->floodlist, (GHRFunc) flood_hash_check_remove, GINT_TO_POINTER((int) now));
}