mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-05 03:26:46 +02:00
This should fix segfault and remove one-line comments
This commit is contained in:
@ -472,7 +472,7 @@ static void friendlist_onInit(ToxWindow *self, Tox *m)
|
||||
static void friendlist_onAv(ToxWindow *self, ToxAv *av)
|
||||
{
|
||||
int id = toxav_get_peer_id(av, 0);
|
||||
id++;
|
||||
/*id++;*/
|
||||
if ( id >= max_friends_index)
|
||||
return;
|
||||
|
||||
@ -511,7 +511,7 @@ ToxWindow new_friendlist(void)
|
||||
ret.onFriendAdded = &friendlist_onFriendAdded;
|
||||
ret.onMessage = &friendlist_onMessage;
|
||||
ret.onConnectionChange = &friendlist_onConnectionChange;
|
||||
ret.onAction = &friendlist_onMessage; // Action has identical behaviour to message
|
||||
ret.onAction = &friendlist_onMessage; /* Action has identical behaviour to message */
|
||||
ret.onNickChange = &friendlist_onNickChange;
|
||||
ret.onStatusChange = &friendlist_onStatusChange;
|
||||
ret.onStatusMessageChange = &friendlist_onStatusMessageChange;
|
||||
|
Reference in New Issue
Block a user