diff --git a/apclient.hpp b/apclient.hpp index 330f9bd..7dc9d8b 100644 --- a/apclient.hpp +++ b/apclient.hpp @@ -1372,7 +1372,6 @@ class APClient { _hasPassword = command.value("password", false); _commandPermissions = command.value("permissions", std::map{}); if (_state < State::ROOM_INFO) _state = State::ROOM_INFO; - if (_hOnRoomInfo) _hOnRoomInfo(); // check if cached data package is already valid // if not, build a list to query @@ -1462,8 +1461,14 @@ class APClient { if (!exclude.empty()) _set_data_package(_dataPackage); // apply loaded strings - if (!_dataPackageValid) GetDataPackage(include); - else debug("Data package up to date"); + + if (_hOnRoomInfo) + _hOnRoomInfo(); + + if (!_dataPackageValid) + GetDataPackage(include); + else + debug("Data package up to date"); } else if (cmd == "ConnectionRefused") { if (_hOnSlotRefused) {