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

code cleanup, improve do_connection

This commit is contained in:
Jfreegman
2014-06-19 13:50:41 -04:00
parent eb7d910683
commit 034a8f5d8b
5 changed files with 51 additions and 41 deletions

View File

@@ -297,7 +297,7 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
if (self->num != groupnum)
return;
if (groupnum > MAX_GROUPCHAT_NUM)
if (groupnum > max_groupchat_index)
return;
groupchats[groupnum].num_peers = tox_group_number_peers(m, groupnum);