diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-19 15:45:40 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-19 15:45:40 +0000 |
commit | d5f22075c756bd0f8e26ea636bc660a23580e664 (patch) | |
tree | c6feafd0ff89b0997cfd09f552f6b68c8c81a100 /src/irc/core/irc-session.c | |
parent | 55137fa30d6144c66c081aefc5f7ad7d346ee0f1 (diff) | |
download | irssi-d5f22075c756bd0f8e26ea636bc660a23580e664.zip |
/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
Diffstat (limited to 'src/irc/core/irc-session.c')
-rw-r--r-- | src/irc/core/irc-session.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |