From 145ceba1240792f2488dea6cec83f295b6a7e591 Mon Sep 17 00:00:00 2001 From: TingPing Date: Mon, 23 Sep 2013 12:45:08 -0400 Subject: Strip trailing space from CAP REQ Mentioned in #770 --- src/common/inbound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/inbound.c b/src/common/inbound.c index fca5f071..097cb118 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -1708,7 +1708,7 @@ inbound_cap_ls (server *serv, char *nick, char *extensions_str, EMIT_SIGNAL_TIMESTAMP (XP_TE_CAPREQ, serv->server_session, buffer + 9, NULL, NULL, NULL, 0, tags_data->timestamp); - tcp_sendf (serv, "%s\r\n", buffer); + tcp_sendf (serv, "%s\r\n", g_strchomp (buffer)); } if (!want_sasl) { -- cgit 1.4.1