diff options
| author | unknown <pesco@khjk.org> | 2013-11-11 23:46:36 +0100 | 
|---|---|---|
| committer | unknown <pesco@khjk.org> | 2013-11-11 23:46:36 +0100 | 
| commit | e73e165ba007cd0e0960da2942f4b10334eaf4af (patch) | |
| tree | 2dd1a4ce9e3856ecee21e58fb46fd6e42c43bc6e /irc_channel.c | |
| parent | 51f937efd8653a3dc79ba1dbdb93fc2c69c78504 (diff) | |
| parent | d4a4f1a076eea0bb50ab30fda5323328dd8df568 (diff) | |
merge upstream
Diffstat (limited to 'irc_channel.c')
| -rw-r--r-- | irc_channel.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/irc_channel.c b/irc_channel.c index 4e8c0bb5..88aecce6 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -34,6 +34,7 @@ extern const struct irc_channel_funcs irc_channel_im_chat_funcs;  irc_channel_t *irc_channel_new( irc_t *irc, const char *name )  {  	irc_channel_t *ic; +	set_t *s;  	if( !irc_channel_name_ok( name ) || irc_channel_by_name( irc, name ) )  		return NULL; @@ -48,7 +49,9 @@ irc_channel_t *irc_channel_new( irc_t *irc, const char *name )  	irc->channels = g_slist_append( irc->channels, ic );  	set_add( &ic->set, "auto_join", "false", set_eval_bool, ic ); -	set_add( &ic->set, "type", "control", set_eval_channel_type, ic ); +	 +	s = set_add( &ic->set, "type", "control", set_eval_channel_type, ic ); +	s->flags |= SET_NOSAVE;    /* Layer violation (XML format detail) */  	if( name[0] == '&' )  		set_setstr( &ic->set, "type", "control" ); | 
