1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 06:56:44 +02:00

make groupchat announcements behave properly

This commit is contained in:
Jfreegman
2014-10-09 01:39:22 -04:00
parent 0908920b51
commit e4a28d1839
6 changed files with 99 additions and 19 deletions

View File

@ -104,6 +104,9 @@ void str_to_lower(char *str);
Returns nick len on success, -1 on failure */
int get_nick_truncate(Tox *m, char *buf, int friendnum);
/* same as get_nick_truncate but for groupchats */
int get_group_nick_truncate(Tox *m, char *buf, int peernum, int groupnum);
/* copies data to msg buffer.
returns length of msg, which will be no larger than size-1 */
uint16_t copy_tox_str(char *msg, size_t size, const char *data, uint16_t length);