Fix whitespace being added if no tags are written

This commit is contained in:
Alex 2020-08-14 11:32:25 +02:00
parent 16b6e0dddc
commit 4b7cd6c994
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ signed int Assm_mesg(char* buf, IRC_Message* in, size_t len)
#ifdef UIRC_IRCV3
if ((ret = Assm_tags(pos, &in->tags, len - (pos - buf))) >= 0)
pos += ret;
if (!safe_charcpy(&pos, ' ', len - (pos - buf)))
return ERR_UIRC_BUFFER_ERR;
else
return ret;
if (!safe_charcpy(&pos, ' ', len - (pos - buf)))
return ERR_UIRC_BUFFER_ERR;
#endif
if (in->name.nick != NULL || in->name.host != NULL) {
if (!safe_charcpy(&pos, ':', len - (pos - buf)))