summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc-server.c4
-rw-r--r--src/irc/irc.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c
index 126043c04..afcac970a 100644
--- a/src/irc/irc-server.c
+++ b/src/irc/irc-server.c
@@ -1529,7 +1529,7 @@ server_reconnect (t_irc_server *server)
*/
void
-server_auto_connect (int command_line)
+server_auto_connect (int auto_connect, int command_line)
{
t_irc_server *ptr_server;
@@ -1537,7 +1537,7 @@ server_auto_connect (int command_line)
ptr_server = ptr_server->next_server)
{
if ( ((command_line) && (ptr_server->command_line))
- || ((!command_line) && (ptr_server->autoconnect)) )
+ || ((!command_line) && (auto_connect) && (ptr_server->autoconnect)) )
{
(void) gui_buffer_new (gui_current_window, ptr_server, NULL, 0, 1);
gui_redraw_buffer (gui_current_window->buffer);
diff --git a/src/irc/irc.h b/src/irc/irc.h
index 2a11cadc8..e2335c4a5 100644
--- a/src/irc/irc.h
+++ b/src/irc/irc.h
@@ -303,7 +303,7 @@ extern void server_recv (t_irc_server *);
extern void server_child_read (t_irc_server *);
extern int server_connect (t_irc_server *);
extern void server_reconnect (t_irc_server *);
-extern void server_auto_connect (int);
+extern void server_auto_connect (int, int);
extern void server_disconnect (t_irc_server *, int);
extern void server_disconnect_all ();
extern t_irc_server *server_search (char *);