diff options
author | Valentin Batz <senneth@irssi.org> | 2004-10-18 14:40:33 +0000 |
---|---|---|
committer | senneth <senneth@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-10-18 14:40:33 +0000 |
commit | 99c2aaca4ca32b8e0d42779aab38bed4ff6e9331 (patch) | |
tree | d291f9ab365ae2336d80b5967f702104917d61ee /src | |
parent | 99998626641178aa097de2ccf62ffbeceef98150 (diff) | |
download | irssi-99c2aaca4ca32b8e0d42779aab38bed4ff6e9331.zip |
/UPGRADE saves now server->version
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3324 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/session.c b/src/core/session.c index 2355df78..48ecba83 100644 --- a/src/core/session.c +++ b/src/core/session.c @@ -186,6 +186,7 @@ static void session_save_server(SERVER_REC *server, CONFIG_REC *config, config_node_set_str(config, node, "chatnet", server->connrec->chatnet); config_node_set_str(config, node, "password", server->connrec->password); config_node_set_str(config, node, "nick", server->nick); + config_node_set_str(config, node, "version", server->version); config_node_set_bool(config, node, "use_ssl", server->connrec->use_ssl); config_node_set_str(config, node, "ssl_cert", server->connrec->ssl_cert); @@ -291,6 +292,7 @@ static void session_restore_server(CONFIG_NODE *node) conn->connect_handle = g_io_channel_unix_new(handle); server = proto->server_init_connect(conn); + server->version = g_strdup(config_node_get_str(node, "version", NULL)); server->session_reconnect = TRUE; signal_emit("session restore server", 2, server, node); |