1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-25 01:03:14 +01:00

groupchat keys can sometimes start with a 0

This commit is contained in:
Jfreegman
2014-07-02 13:46:57 -04:00
parent 95d09e4b75
commit 0f37e50419
6 changed files with 11 additions and 9 deletions

View File

@@ -307,7 +307,7 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
groupchats[groupnum].num_peers = tox_group_number_peers(m, groupnum);
int num_peers = groupchats[groupnum].num_peers;
if (peernum >= num_peers)
if (peernum > num_peers)
return;
/* get old peer name before updating name list */