Small fix for one time error when leaving guild.

This commit is contained in:
Road-block
2017-09-10 18:21:08 +03:00
parent 28b85d0f0c
commit fdc03f90ae
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -609,7 +609,7 @@ function sepgp:buildClassMemberTable(roster,epgp)
local c = { }
for i,member in ipairs(roster) do
local class,name = member.class, member.name
if c[class] == nil then
if (class) and (c[class] == nil) then
c[class] = { }
c[class].type = "group"
c[class].name = class
@@ -617,7 +617,7 @@ function sepgp:buildClassMemberTable(roster,epgp)
c[class].hidden = function() return not (admin()) end
c[class].args = { }
end
if c[class].args[name] == nil then
if (name) and (c[class].args[name] == nil) then
c[class].args[name] = { }
c[class].args[name].type = "text"
c[class].args[name].name = name
+1 -1
View File
@@ -3,7 +3,7 @@
## Notes: Effort Points/Gear Points Loot System
## Author: Roadblock
## X-Credits: shooty for original version
## Version: 3.1
## Version: 3.11
## OptionalDeps: Ace2
## SavedVariables: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount
## SavedVariablesPerCharacter: sepgp_log, sepgp_dbver