degesch: force a non-empty realname

At least a space seems to be needed with some ircds.
This commit is contained in:
Přemysl Eric Janouch 2015-05-04 02:25:33 +02:00
parent b3254a589c
commit 8e4a16af3a
1 changed files with 2 additions and 1 deletions

View File

@ -4676,7 +4676,8 @@ irc_connect (struct server *s, bool *should_retry, struct error **e)
irc_reset_connection_timeouts (s);
irc_send (s, "NICK %s", nickname);
irc_send (s, "USER %s 8 * :%s", username, realname);
// IRC servers may ignore the last argument if it's empty
irc_send (s, "USER %s 8 * :%s", username, *realname ? realname : " ");
// XXX: maybe we should wait for the first message from the server
// FIXME: the user may exist already after we've reconnected. Either