aboutsummaryrefslogtreecommitdiffstats
path: root/storage_xml.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-28 01:07:46 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-28 01:07:46 +0100
commit1c40aa73b52e4507404c82056170069a859fb0cb (patch)
tree6dd325cd318c645e16c6d01fa8296cd17aaabaa4 /storage_xml.c
parent134a02cd563c395d0026d9d1b07eb136394798ca (diff)
Mark nameless groupchat channels as temporary so they don't stick around
forever.
Diffstat (limited to 'storage_xml.c')
-rw-r--r--storage_xml.c3
1 files changed, 3 insertions, 0 deletions
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, "<channel name=\"%s\" type=\"%s\">\n",
ic->name, set_getstr( &ic->set, "type" ) ) )
goto write_error;