diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-19 22:18:13 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-19 22:18:13 +0100 |
commit | 5a61bf59dc372e795163dc5afa4cc91820f559f8 (patch) | |
tree | 4876d3682d7865b6616618f54e912c5360eea535 /irc_channel.c | |
parent | 6d8cc053c4b247ad721a0760b13cd383d758c2c5 (diff) |
Whoops. Small memory management screw-up.
Diffstat (limited to 'irc_channel.c')
-rw-r--r-- | irc_channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/irc_channel.c b/irc_channel.c index b3058e0e..536b2de1 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -545,13 +545,15 @@ static gboolean control_channel_init( irc_channel_t *ic ) set_add( &ic->set, "fill_by", "all", set_eval_fill_by, ic ); set_add( &ic->set, "group", NULL, set_eval_by_group, ic ); set_add( &ic->set, "protocol", NULL, set_eval_by_protocol, ic ); + + /* When changing the default, also change it below. */ set_add( &ic->set, "show_users", "online+,away", set_eval_show_users, ic ); ic->data = icc = g_new0( struct irc_control_channel, 1 ); icc->type = IRC_CC_TYPE_DEFAULT; /* Have to run the evaluator to initialize icc->modes. */ - set_setstr( &ic->set, "show_users", set_getstr( &ic->set, "show_users" ) ); + set_setstr( &ic->set, "show_users", "online+,away" ); return TRUE; } |