Verify name exists before adding them to network
This commit is contained in:
@@ -15,10 +15,16 @@ function shared.Network.Init()
|
||||
local friends = {}
|
||||
for i = 1, GetNumFriends() do
|
||||
local name, level, class, area, connected, status, note, RAF = GetFriendInfo(i)
|
||||
if name then
|
||||
friends[name] = connected
|
||||
if Heimdall_Data.config.network.debug then
|
||||
print(string.format("[%s] Friend %s is %s", ModuleName, name, connected and "online" or "offline"))
|
||||
end
|
||||
else
|
||||
if Heimdall_Data.config.network.debug then
|
||||
print(string.format("[%s] Friend %s is nil", ModuleName, i))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, member in ipairs(Heimdall_Data.config.network.members) do
|
||||
|
Reference in New Issue
Block a user