From: Maxim Mamontov Date: Thu, 1 Sep 2011 13:29:04 +0000 (+0300) Subject: Ignore deleted users while building new tariffs table X-Git-Tag: 2.408-alpha~3 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/27cbf9efdb75590ada1c734e68bd74a78730ad20 Ignore deleted users while building new tariffs table --- diff --git a/projects/stargazer/plugins/other/smux/tables.cpp b/projects/stargazer/plugins/other/smux/tables.cpp index 962c91a8..ad08c40f 100644 --- a/projects/stargazer/plugins/other/smux/tables.cpp +++ b/projects/stargazer/plugins/other/smux/tables.cpp @@ -28,6 +28,8 @@ assert(handle && "USERS::OpenSearch is always correct"); USER_PTR user; while (!users.SearchNext(handle, &user)) { + if (user->GetDeleted()) + continue; std::string tariffName(user->GetProperty().tariffName.ConstData()); std::map::iterator it; it = data.lower_bound(tariffName);