summaryrefslogtreecommitdiff
path: root/src/weechat.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2003-09-28 11:17:16 +0000
committerSebastien Helleu <flashcode@flashtux.org>2003-09-28 11:17:16 +0000
commita5ae266ee4df887edbe2ed3608c7f8479c167745 (patch)
treeeb8e3a2daa974d501affa19609af323426c8c9b5 /src/weechat.c
parenta353a6d228a11283307acf931a43bf5ca89a033f (diff)
downloadweechat-a5ae266ee4df887edbe2ed3608c7f8479c167745.zip
Added /server command
Diffstat (limited to 'src/weechat.c')
-rw-r--r--src/weechat.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/weechat.c b/src/weechat.c
index 25f7a34d6..63c01de8a 100644
--- a/src/weechat.c
+++ b/src/weechat.c
@@ -292,13 +292,16 @@ main (int argc, char *argv[])
gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX1,
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
- /* connect to all servers */
+ /* connect to all servers (with autoconnect flag) */
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)
{
- server_create_window (ptr_server);
- if (server_connect (ptr_server))
- irc_login (ptr_server);
+ if (ptr_server->autoconnect)
+ {
+ server_create_window (ptr_server);
+ if (server_connect (ptr_server))
+ irc_login (ptr_server);
+ }
}
gui_main_loop ();
server_disconnect_all ();