diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-26 15:39:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-26 15:39:44 +0000 |
commit | e395e87dedd9aa85f05e5c74330a76f1ef700371 (patch) | |
tree | 1184487b13038499f1771e4c553222f85b8524d2 /src/fe-common/irc/fe-common-irc.c | |
parent | 3d124da13b8da5c0b535abfe6265fc471d9d2ebd (diff) | |
download | irssi-e395e87dedd9aa85f05e5c74330a76f1ef700371.zip |
Lots of moving stuff around - hopefully I didn't break too much :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 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 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fe-common/irc/fe-common-irc.c b/src/fe-common/irc/fe-common-irc.c index f1f1a515..651266f5 100644 --- a/src/fe-common/irc/fe-common-irc.c +++ b/src/fe-common/irc/fe-common-irc.c @@ -26,7 +26,7 @@ #include "lib-config/iconfig.h" #include "settings.h" -#include "server-setup.h" +#include "servers-setup.h" #include "themes.h" #include "completion.h" @@ -181,12 +181,12 @@ void fe_common_irc_finish_init(void) /* connect to autoconnect servers */ ircnets = NULL; for (tmp = setupservers; tmp != NULL; tmp = tmp->next) { - SETUP_SERVER_REC *rec = tmp->data; + SERVER_SETUP_REC *rec = tmp->data; - if (rec->autoconnect && (rec->ircnet == NULL || *rec->ircnet == '\0' || - gslist_find_icase_string(ircnets, rec->ircnet) == NULL)) { - if (rec->ircnet != NULL && *rec->ircnet != '\0') - ircnets = g_slist_append(ircnets, rec->ircnet); + if (rec->autoconnect && (rec->chatnet == NULL || *rec->chatnet == '\0' || + gslist_find_icase_string(ircnets, rec->chatnet) == NULL)) { + if (rec->chatnet != NULL && *rec->chatnet != '\0') + ircnets = g_slist_append(ircnets, rec->chatnet); str = g_strdup_printf("%s %d", rec->address, rec->port); signal_emit("command connect", 1, str); |