mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-05 03:16:45 +02:00
made prompt window beep/blink on friend request
This commit is contained in:
@ -76,8 +76,9 @@ void friendlist_onStatusMessageChange(ToxWindow *self, int num, uint8_t *str, ui
|
||||
if (len >= TOX_MAX_STATUSMESSAGE_LENGTH || num < 0 || num >= num_friends)
|
||||
return;
|
||||
|
||||
memcpy((char *) &friends[num].statusmsg, (char *) str, len);
|
||||
friends[num].statusmsg[len] = 0;
|
||||
/* Ignore default "Online" status message */
|
||||
if (strncmp(str, "Online", strlen(str)))
|
||||
memcpy((char *) &friends[num].statusmsg, (char *) str, len);
|
||||
}
|
||||
|
||||
int friendlist_onFriendAdded(Tox *m, int num)
|
||||
|
Reference in New Issue
Block a user