summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <TingPing@users.noreply.github.com>2013-09-23 12:45:08 -0400
committerTingPing <TingPing@users.noreply.github.com>2013-09-23 12:45:08 -0400
commit145ceba1240792f2488dea6cec83f295b6a7e591 (patch)
tree8af9ed8ba713d04859681e112b910f4e427e3dae
parent90ea691b750e7cdac0b106857f50eb4002dec56b (diff)
Strip trailing space from CAP REQ
Mentioned in #770
-rw-r--r--src/common/inbound.c2
1 files changed, 1 insertions, 1 deletions
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)
 	{