diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/servers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/servers.c b/src/core/servers.c index 9324a7d5..da16d648 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -101,7 +101,8 @@ static char *server_create_tag(SERVER_CONNECT_REC *conn) g_return_val_if_fail(IS_SERVER_CONNECT(conn), NULL); - tag = conn->chatnet != NULL ? g_strdup(conn->chatnet) : + tag = conn->chatnet != NULL && *conn->chatnet != '\0' ? + g_strdup(conn->chatnet) : server_create_address_tag(conn->address); /* then just append numbers after tag until unused is found.. */ |