summaryrefslogtreecommitdiff
path: root/src/core/session.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-20 18:12:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-20 18:12:45 +0000
commit911f69dc3ae5dc902d78ef2c1e8000f297dbbacc (patch)
tree7b5a7277cf18456dce55da91be322eda34b46c02 /src/core/session.c
parentdb4a0e5003d30103eb4ca8e4feadbdd164dafe65 (diff)
downloadirssi-911f69dc3ae5dc902d78ef2c1e8000f297dbbacc.zip
/UPGRADE saves now topic_time and topic_by.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2523 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/session.c')
-rw-r--r--src/core/session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/session.c b/src/core/session.c
index 0248f13e..7e7b0afa 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -146,6 +146,8 @@ static void session_save_channel(CHANNEL_REC *channel, CONFIG_REC *config,
config_node_set_str(config, node, "name", channel->name);
config_node_set_str(config, node, "topic", channel->topic);
+ config_node_set_str(config, node, "topic_by", channel->topic_by);
+ config_node_set_int(config, node, "topic_time", channel->topic_time);
config_node_set_str(config, node, "key", channel->key);
signal_emit("session save channel", 3, channel, config, node);
@@ -220,6 +222,8 @@ static void session_restore_channel(SERVER_REC *server, CONFIG_NODE *node)
channel = CHAT_PROTOCOL(server)->channel_create(server, name, TRUE);
channel->topic = g_strdup(config_node_get_str(node, "topic", NULL));
+ channel->topic_by = g_strdup(config_node_get_str(node, "topic_by", NULL));
+ channel->topic_time = config_node_get_int(node, "topic_time", 0);
channel->key = g_strdup(config_node_get_str(node, "key", NULL));
channel->session_rejoin = TRUE;