diff options
-rw-r--r-- | src/irc/core/server-setup.c | 2 |
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);; } |