Remove trailing space in CAP ACK.

Fixes https://github.com/atheme/charybdis/issues/110
This commit is contained in:
Valentin Lorentz 2015-12-28 10:57:17 +01:00
parent e00552d5ce
commit d855e13e01

View file

@ -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)