From 1c40aa73b52e4507404c82056170069a859fb0cb Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 28 Jun 2010 01:07:46 +0100 Subject: Mark nameless groupchat channels as temporary so they don't stick around forever. --- storage_xml.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'storage_xml.c') diff --git a/storage_xml.c b/storage_xml.c index d20469af..f97b2cd5 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -516,6 +516,9 @@ static storage_status_t xml_save( irc_t *irc, int overwrite ) { irc_channel_t *ic = l->data; + if( ic->flags & IRC_CHANNEL_TEMP ) + continue; + if( !xml_printf( fd, 1, "\n", ic->name, set_getstr( &ic->set, "type" ) ) ) goto write_error; -- cgit v1.2.3