]> git.stg.codes - stg.git/commitdiff
Ignore deleted users while building new tariffs table
authorMaxim Mamontov <faust.madf@gmail.com>
Thu, 1 Sep 2011 13:29:04 +0000 (16:29 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Thu, 1 Sep 2011 13:29:04 +0000 (16:29 +0300)
projects/stargazer/plugins/other/smux/tables.cpp

index 962c91a8207f3e288ceb2e1eb1adb1ffcc56223f..ad08c40f02acd03794aefa2b996d1ea6729ab2cd 100644 (file)
@@ -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<std::string, size_t>::iterator it;
     it = data.lower_bound(tariffName);