summaryrefslogtreecommitdiff
path: root/src/core/servers.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-03 22:06:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-03 22:06:45 +0000
commit060756da9f3a16135fe91e94ad8432f67e93a1a6 (patch)
tree1fce8379362d51c21177f6929c36ae480614de21 /src/core/servers.c
parent1a61f989e1b010200942e4693fadbd1119d1e783 (diff)
downloadirssi-060756da9f3a16135fe91e94ad8432f67e93a1a6.zip
/CONNECT -ircnet "" - even if someone does this don't make the server
tag empty :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1328 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/servers.c')
-rw-r--r--src/core/servers.c3
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.. */