mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
e7902ae551
commit
c9f5eafb3d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user