Code format
This commit is contained in:
@@ -12,17 +12,17 @@ function shared.Dueler.Init()
|
||||
if Heimdall_Data.config.dueler.debug then
|
||||
print(string.format("[%s] Duel request received from: %s", ModuleName, sender))
|
||||
end
|
||||
if not Heimdall_Data.config.dueler.enabled then
|
||||
if not Heimdall_Data.config.dueler.enabled then
|
||||
if Heimdall_Data.config.dueler.debug then
|
||||
print(string.format("[%s] Module disabled, ignoring duel request", ModuleName))
|
||||
end
|
||||
return
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
if Heimdall_Data.config.dueler.debug then
|
||||
print(string.format("[%s] Checking if sender '%s' is in agents list", ModuleName, sender))
|
||||
end
|
||||
|
||||
|
||||
local allow = Heimdall_Data.config.agents[sender]
|
||||
if allow then
|
||||
if Heimdall_Data.config.dueler.debug then
|
||||
@@ -30,7 +30,7 @@ function shared.Dueler.Init()
|
||||
end
|
||||
AcceptDuel()
|
||||
else
|
||||
if Heimdall_Data.config.dueler.autoDecline then
|
||||
if Heimdall_Data.config.dueler.declineOther then
|
||||
if Heimdall_Data.config.dueler.debug then
|
||||
print(string.format("[%s] Auto-declining duel from untrusted sender: %s", ModuleName, sender))
|
||||
end
|
||||
@@ -44,7 +44,8 @@ function shared.Dueler.Init()
|
||||
end)
|
||||
|
||||
if Heimdall_Data.config.dueler.debug then
|
||||
print(string.format("[%s] Module initialized with auto-decline: %s", ModuleName, tostring(Heimdall_Data.config.dueler.autoDecline)))
|
||||
print(string.format("[%s] Module initialized with auto-decline: %s", ModuleName,
|
||||
tostring(Heimdall_Data.config.dueler.declineOther)))
|
||||
end
|
||||
print("[Heimdall] Dueler loaded")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user