Fix whitespace being added if no tags are written
This commit is contained in:
parent
16b6e0dddc
commit
4b7cd6c994
|
@ -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)))
|
||||
|
|
Reference in New Issue