summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc.c')
-rw-r--r--src/plugins/irc/irc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/irc/irc.c b/src/plugins/irc/irc.c
index 0703273a8..3ebaacd1b 100644
--- a/src/plugins/irc/irc.c
+++ b/src/plugins/irc/irc.c
@@ -233,8 +233,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
}
else
{
- if (auto_connect)
- irc_server_auto_connect ();
+ irc_server_auto_connect (auto_connect);
}
irc_hook_timer = weechat_hook_timer (1 * 1000, 0, 0,