mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
irc_syncbot now parse out NULL characters from the Tox groupchat.
This commit is contained in:
parent
6985353392
commit
3d1c0f0536
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue
Block a user