summaryrefslogtreecommitdiff
path: root/src/core/servers.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-07-16 16:12:16 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-07-16 16:12:16 +0000
commitc9f5eafb3db1057f6911e56453e40556d4d06d5f (patch)
treea4a9b274c0f6f7f031e78a0426f493a366917bec /src/core/servers.c
parente7902ae551e829840cab8d077a1d49b690a5963c (diff)
downloadirssi-c9f5eafb3db1057f6911e56453e40556d4d06d5f.zip
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
Diffstat (limited to 'src/core/servers.c')
-rw-r--r--src/core/servers.c4
1 files 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);
}