From 99c2aaca4ca32b8e0d42779aab38bed4ff6e9331 Mon Sep 17 00:00:00 2001 From: Valentin Batz Date: Mon, 18 Oct 2004 14:40:33 +0000 Subject: [PATCH] /UPGRADE saves now server->version git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3324 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/session.c | 2 ++ 1 file changed, 2 insertions(+) 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);