1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 05:56:35 +01:00

improve command parsing so you don't need quotes & add group ignoring

This commit is contained in:
Jfreegman
2015-01-12 15:03:23 -05:00
parent 89637e7d2f
commit 7ee858110c
8 changed files with 150 additions and 39 deletions

View File

@@ -300,9 +300,8 @@ int get_group_nick_truncate(Tox *m, char *buf, int peernum, int groupnum)
uint16_t copy_tox_str(char *msg, size_t size, const char *data, uint16_t length)
{
if (length > size - 1) {
length = 0;
msg[0] = '\0';
return length;
return 0;
}
memcpy(msg, data, length);