diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-06 23:29:48 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-06 23:29:48 +0000 |
commit | 4c6237256f026def4221615bf04c9ec97cee15bb (patch) | |
tree | 65b3d378aca1d68d854148af23a96da52e8741a3 /src/irc/core/irc-servers-setup.c | |
parent | be8778052e5932c3d0b4b021ce00997b1f5f9880 (diff) | |
download | irssi-4c6237256f026def4221615bf04c9ec97cee15bb.zip |
/IRCNET ADD -usermode option added.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2206 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-servers-setup.c')
-rw-r--r-- | src/irc/core/irc-servers-setup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers-setup.c b/src/irc/core/irc-servers-setup.c index 536ea310..8606a470 100644 --- a/src/irc/core/irc-servers-setup.c +++ b/src/irc/core/irc-servers-setup.c @@ -51,6 +51,7 @@ static void sig_server_setup_fill_connect(IRC_SERVER_CONNECT_REC *conn) return; conn->alternate_nick = g_strdup(settings_get_str("alternate_nick")); + conn->usermode = g_strdup(settings_get_str("usermode")); } static void sig_server_setup_fill_chatnet(IRC_SERVER_CONNECT_REC *conn, @@ -60,7 +61,11 @@ static void sig_server_setup_fill_chatnet(IRC_SERVER_CONNECT_REC *conn, return; g_return_if_fail(IS_IRCNET(ircnet)); - if (ircnet->nick) g_free_and_null(conn->alternate_nick); + if (ircnet->nick != NULL) g_free_and_null(conn->alternate_nick); + if (ircnet->usermode != NULL) { + g_free_and_null(conn->usermode); + conn->usermode = g_strdup(ircnet->usermode); + } if (ircnet->max_kicks > 0) conn->max_kicks = ircnet->max_kicks; if (ircnet->max_msgs > 0) conn->max_msgs = ircnet->max_msgs; |