summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/notifylist
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-10-14 02:41:46 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-10-14 02:41:46 +0000
commit8c4b167327ad180255d86249728a111d82bbc9ec (patch)
tree1886eefe9030aeb0fe6bdea2b1cdf7b1f3329974 /src/fe-common/irc/notifylist
parentf9a07afa5e236b43659a6d05fce759f38c0e8fe9 (diff)
downloadirssi-8c4b167327ad180255d86249728a111d82bbc9ec.zip
multiprotocol fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@749 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/notifylist')
-rw-r--r--src/fe-common/irc/notifylist/fe-notifylist.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fe-common/irc/notifylist/fe-notifylist.c b/src/fe-common/irc/notifylist/fe-notifylist.c
index b5a87f5d..cd9adf9c 100644
--- a/src/fe-common/irc/notifylist/fe-notifylist.c
+++ b/src/fe-common/irc/notifylist/fe-notifylist.c
@@ -59,7 +59,7 @@ static void print_notify_onserver(IRC_SERVER_REC *server, GSList *nicks,
GSList *tmp;
GString *str;
- g_return_if_fail(server != NULL);
+ g_return_if_fail(IS_IRC_SERVER(server));
g_return_if_fail(offline != NULL);
g_return_if_fail(desc != NULL);
@@ -104,10 +104,12 @@ static void cmd_notify_show(void)
for (tmp = chatnets; tmp != NULL; tmp = tmp->next) {
IRC_CHATNET_REC *rec = tmp->data;
- if (!IS_IRCNET(rec)) continue;
+ if (!IS_IRCNET(rec))
+ continue;
server = (IRC_SERVER_REC *) server_find_chatnet(rec->name);
- if (server == NULL) continue;
+ if (!IS_IRC_SERVER(server))
+ continue;
print_notify_onserver(server, nicks, &offline, rec->name);
}
@@ -116,7 +118,7 @@ static void cmd_notify_show(void)
for (tmp = servers; tmp != NULL; tmp = tmp->next) {
server = tmp->data;
- if (server->connrec->chatnet != NULL)
+ if (!IS_IRC_SERVER(server) || server->connrec->chatnet != NULL)
continue;
print_notify_onserver(server, nicks, &offline, server->tag);
}