summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-02 17:27:20 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-02 17:27:20 +0000
commit85b63bf5465f4cc6d2fd1472cb9e87c5b6719f63 (patch)
treec95e8a07ffa4675446720b17420079a94049e529 /src
parentfeec7bfb6232ca867c358f755bfd3b32487df3e0 (diff)
downloadirssi-85b63bf5465f4cc6d2fd1472cb9e87c5b6719f63.zip
Also, if alternate_nick is "", don't go set it to connection record..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2373 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-servers-setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers-setup.c b/src/irc/core/irc-servers-setup.c
index 8837e5ba..bbc710f4 100644
--- a/src/irc/core/irc-servers-setup.c
+++ b/src/irc/core/irc-servers-setup.c
@@ -50,7 +50,8 @@ static void sig_server_setup_fill_connect(IRC_SERVER_CONNECT_REC *conn)
if (!IS_IRC_SERVER_CONNECT(conn))
return;
- conn->alternate_nick = g_strdup(settings_get_str("alternate_nick"));
+ conn->alternate_nick = *settings_get_str("alternate_nick") != '\0' ?
+ g_strdup(settings_get_str("alternate_nick")) : NULL;
conn->usermode = g_strdup(settings_get_str("usermode"));
}