From d5f22075c756bd0f8e26ea636bc660a23580e664 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Nov 2001 15:45:40 +0000 Subject: /UPGRADE now remembers user mode, patch by lam@e-gate.pl git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2084 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-session.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/irc') diff --git a/src/irc/core/irc-session.c b/src/irc/core/irc-session.c index b4589871..dcb7d5d3 100644 --- a/src/irc/core/irc-session.c +++ b/src/irc/core/irc-session.c @@ -35,6 +35,7 @@ static void sig_session_save_server(IRC_SERVER_REC *server, CONFIG_REC *config, config_node_set_str(config, node, "real_address", server->real_address); config_node_set_str(config, node, "userhost", server->userhost); + config_node_set_str(config, node, "usermode", server->usermode); chans = irc_server_get_channels(server); config_node_set_str(config, node, "channels", chans); @@ -50,6 +51,7 @@ static void sig_session_restore_server(IRC_SERVER_REC *server, if (server->real_address == NULL) server->real_address = g_strdup(config_node_get_str(node, "real_address", NULL)); server->userhost = g_strdup(config_node_get_str(node, "userhost", NULL)); + server->usermode = g_strdup(config_node_get_str(node, "usermode", NULL)); g_free_not_null(server->connrec->channels); server->connrec->channels = g_strdup(config_node_get_str(node, "channels", NULL)); -- cgit v1.2.3