From 85b63bf5465f4cc6d2fd1472cb9e87c5b6719f63 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 2 Feb 2002 17:27:20 +0000 Subject: 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 --- src/irc/core/irc-servers-setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/irc') 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")); } -- cgit v1.2.3