Hard coded value - GetOps and GetNonOps

Bug #1132471 reported by Herman on 2013-02-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ADCH++-PtokaX
Undecided
Unassigned

Bug Description

 GetNonOps = function()
  local ret = {}
  for _, user in base.ipairs(registered_users()) do
   local profile = level_profile(user.level)
   if profile == 2 or profile == 3 then
    table.insert(ret, reg_table(user, profile))
   end
  end
  return ret
 end,
 GetOps = function()
  local ret = {}
  for _, user in base.ipairs(registered_users()) do
   local profile = level_profile(user.level)
   if profile == 0 or profile == 1 then
    table.insert(ret, reg_table(user, profile))
   end
  end
  return ret
 end,

Hard coded value for profile checks.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers