From d855e13e01c7f9f616610746dea9bdc55ac4ba2a Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 28 Dec 2015 10:57:17 +0100 Subject: [PATCH] Remove trailing space in CAP ACK. Fixes https://github.com/atheme/charybdis/issues/110 --- modules/m_cap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/m_cap.c b/modules/m_cap.c index 072be443..2472d4cb 100644 --- a/modules/m_cap.c +++ b/modules/m_cap.c @@ -426,8 +426,10 @@ cap_req(struct Client *source_p, const char *arg) } strcat(pbuf[i], cap->name); - strcat(pbuf[i], " "); - plen += (cap->namelen + 1); + if (!finished) { + strcat(pbuf[i], " "); + plen += (cap->namelen + 1); + } } if(!finished)