summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-04 02:25:33 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-04 02:25:33 +0200
commit8e4a16af3a920b2c953eb614c4fe3938317e4cd7 (patch)
tree633f84fddc8ff642146813d2cc7746681667cee2 /degesch.c
parentb3254a589c1606895a8c55022f0d8d963c383b42 (diff)
downloadxK-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.
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c3
1 files changed, 2 insertions, 1 deletions
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