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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user