degesch: force a non-empty realname
At least a space seems to be needed with some ircds.
This commit is contained in:
parent
b3254a589c
commit
8e4a16af3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user