1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2000-07-22 19:02:39 +00:00 committed by cras
parent a302e44ba3
commit 0f94de8107

View File

@ -184,7 +184,8 @@ void fe_common_irc_finish_init(void)
for (tmp = setupservers; tmp != NULL; tmp = tmp->next) { for (tmp = setupservers; tmp != NULL; tmp = tmp->next) {
SETUP_SERVER_REC *rec = tmp->data; 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') if (*rec->ircnet != '\0')
ircnets = g_slist_append(ircnets, rec->ircnet); ircnets = g_slist_append(ircnets, rec->ircnet);