aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-04 11:16:07 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-04 11:16:07 +0100
commitc8eeadd72286b87cc1638e388669e00e8c8b9f1e (patch)
treeeba8580124c02c2229a6158cd8a85aa010c7f523 /irc.c
parent0bd948edfea280cf9f05e21cd5bef4b7fdf3335c (diff)
Added automatic joining of channels. Auto-rejoin functionality for
groupchats not reimplemented yet but that's the next step.
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c3
1 files changed, 2 insertions, 1 deletions
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 );