From c8eeadd72286b87cc1638e388669e00e8c8b9f1e Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 4 Jul 2010 11:16:07 +0100 Subject: Added automatic joining of channels. Auto-rejoin functionality for groupchats not reimplemented yet but that's the next step. --- irc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 650917fe..cb1d0867 100644 --- a/irc.c +++ b/irc.c @@ -652,7 +652,8 @@ int irc_check_login( irc_t *irc ) ic = irc->default_channel = irc_channel_new( irc, ROOT_CHAN ); irc_channel_set_topic( ic, CONTROL_TOPIC, irc->root ); - irc_channel_add_user( ic, irc->user ); + set_setstr( &ic->set, "auto_join", "true" ); + irc_channel_auto_joins( irc, NULL ); irc->last_root_cmd = g_strdup( ROOT_CHAN ); -- cgit v1.2.3