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) {
|
for (i = 0; i < send_len; ++i) {
|
||||||
if (sendbuf[i] == '\n')
|
if (sendbuf[i] == '\n')
|
||||||
sendbuf[i] = '|';
|
sendbuf[i] = '|';
|
||||||
|
|
||||||
|
if (sendbuf[i] == 0)
|
||||||
|
sendbuf[i] = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
sendbuf[send_len] = '\n';
|
sendbuf[send_len] = '\n';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user