From 8e4a16af3a920b2c953eb614c4fe3938317e4cd7 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Mon, 4 May 2015 02:25:33 +0200 Subject: degesch: force a non-empty realname At least a space seems to be needed with some ircds. --- degesch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index df786f1..73263fd 100644 --- a/degesch.c +++ b/degesch.c @@ -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 -- cgit v1.2.3-70-g09d2