From c9f5eafb3db1057f6911e56453e40556d4d06d5f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 16 Jul 2002 16:12:16 +0000 Subject: since some servers nowadays don't like having "-" as user/realname, changed the username default to "unknown" and realname default to username. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2866 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/servers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/servers.c b/src/core/servers.c index 12595fa3..47dc688c 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -292,14 +292,14 @@ void server_connect_init(SERVER_REC *server) g_free_not_null(server->connrec->username); str = g_get_user_name(); - if (*str == '\0') str = "-"; + if (*str == '\0') str = "unknown"; server->connrec->username = g_strdup(str); } if (server->connrec->realname == NULL || *server->connrec->realname == '\0') { g_free_not_null(server->connrec->realname); str = g_get_real_name(); - if (*str == '\0') str = "-"; + if (*str == '\0') str = server->connrec->username; server->connrec->realname = g_strdup(str); } -- cgit v1.2.3