summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-28 00:25:14 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-28 00:25:14 +0000
commit49b22f8b318fcdeb783e08bde36d5b83a11a6fea (patch)
treef6822e455be9fd688b7230cb5b6d0a0266e3789a /src/irc
parent796531e31f9c5e3144f217d24d29b9d117fc0a42 (diff)
downloadirssi-49b22f8b318fcdeb783e08bde36d5b83a11a6fea.zip
multiprotocol fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@689 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/flood/autoignore.c9
-rw-r--r--src/irc/flood/flood.c6
2 files changed, 15 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);
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;