diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-04 02:25:33 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-04 02:25:33 +0200 |
commit | 8e4a16af3a920b2c953eb614c4fe3938317e4cd7 (patch) | |
tree | 633f84fddc8ff642146813d2cc7746681667cee2 | |
parent | b3254a589c1606895a8c55022f0d8d963c383b42 (diff) | |
download | xK-8e4a16af3a920b2c953eb614c4fe3938317e4cd7.tar.gz xK-8e4a16af3a920b2c953eb614c4fe3938317e4cd7.tar.xz xK-8e4a16af3a920b2c953eb614c4fe3938317e4cd7.zip |
degesch: force a non-empty realname
At least a space seems to be needed with some ircds.
-rw-r--r-- | degesch.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |