diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-22 19:02:39 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-22 19:02:39 +0000 |
commit | 0f94de810718cd945cd9bd656af7037a809c7c21 (patch) | |
tree | d45bc39493a4bc24abd1c8749ad90af877c1dbf6 /src/fe-common/irc/fe-common-irc.c | |
parent | a302e44ba3701a7f9cd5f25384a3c33794f9d66b (diff) | |
download | irssi-0f94de810718cd945cd9bd656af7037a809c7c21.zip |
Don't crash at startup if IRC network wasn't specified for some server.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@506 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-common-irc.c')
-rw-r--r-- | src/fe-common/irc/fe-common-irc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-common-irc.c b/src/fe-common/irc/fe-common-irc.c index fb31a44c..c05c778f 100644 --- a/src/fe-common/irc/fe-common-irc.c +++ b/src/fe-common/irc/fe-common-irc.c @@ -184,7 +184,8 @@ void fe_common_irc_finish_init(void) for (tmp = setupservers; tmp != NULL; tmp = tmp->next) { SETUP_SERVER_REC *rec = tmp->data; - if (rec->autoconnect && (*rec->ircnet == '\0' || gslist_find_icase_string(ircnets, rec->ircnet) == NULL)) { + if (rec->autoconnect && (rec->ircnet == NULL || *rec->ircnet == '\0' || + gslist_find_icase_string(ircnets, rec->ircnet) == NULL)) { if (*rec->ircnet != '\0') ircnets = g_slist_append(ircnets, rec->ircnet); |