irc_syncbot now parse out NULL characters from the Tox groupchat.

This commit is contained in:
irungentoo 2014-10-15 09:01:00 -04:00
parent 6985353392
commit 3d1c0f0536
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -132,6 +132,9 @@ static void copy_groupmessage(Tox *tox, int groupnumber, int friendgroupnumber,
for (i = 0; i < send_len; ++i) {
if (sendbuf[i] == '\n')
sendbuf[i] = '|';
if (sendbuf[i] == 0)
sendbuf[i] = ' ';
}
sendbuf[send_len] = '\n';