diff options
author | Timo Sirainen <cras@irssi.org> | 2000-09-28 00:28:48 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-09-28 00:28:48 +0000 |
commit | 9843c46cc7446fee36271ae0a6f22a6958b5622a (patch) | |
tree | 6061e2234d5667e7c07499a32339c948cb320332 /src/irc | |
parent | 49b22f8b318fcdeb783e08bde36d5b83a11a6fea (diff) | |
download | irssi-9843c46cc7446fee36271ae0a6f22a6958b5622a.zip |
fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@690 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/notifylist/notifylist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/irc/notifylist/notifylist.c b/src/irc/notifylist/notifylist.c index f16cf16c..fc0c49f6 100644 --- a/src/irc/notifylist/notifylist.c +++ b/src/irc/notifylist/notifylist.c @@ -184,6 +184,9 @@ static void notifylist_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); @@ -197,6 +200,9 @@ static void notifylist_deinit_server(IRC_SERVER_REC *server) g_return_if_fail(server != NULL); + if (!IS_IRC_SERVER(server)) + return; + mserver = MODULE_DATA(server); while (mserver->notify_users != NULL) { rec = mserver->notify_users->data; |