summaryrefslogtreecommitdiff
path: root/src/irc/core/server-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/server-setup.c')
-rw-r--r--src/irc/core/server-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/server-setup.c b/src/irc/core/server-setup.c
index 62c856cb..ccd76430 100644
--- a/src/irc/core/server-setup.c
+++ b/src/irc/core/server-setup.c
@@ -124,7 +124,7 @@ create_addr_conn(const char *address, int port, const char *password,
ircnet = sserver->ircnet == NULL ? NULL : ircnet_find(sserver->ircnet);
if (ircnet == NULL) return conn;
- if (ircnet->nick && !nick) {
+ if (ircnet->nick && !(nick && *nick)) {
g_free(conn->nick);
conn->nick = g_strdup(ircnet->nick);;
}