1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-28 10:36:45 +02:00

use API function for friend count instead of global var

This commit is contained in:
Jfreegman
2014-02-07 18:44:10 -05:00
parent da99d776df
commit 42cd80efe9
6 changed files with 18 additions and 17 deletions

View File

@ -66,7 +66,7 @@ void on_nickchange(Tox *m, int friendnumber, uint8_t *string, uint16_t length, v
for (i = 0; i < MAX_WINDOWS_NUM; ++i) {
if (windows[i].onNickChange != NULL)
windows[i].onNickChange(&windows[i], friendnumber, string, length);
windows[i].onNickChange(&windows[i], m, friendnumber, string, length);
}
if (store_data(m, DATA_FILE))