Fix deathreporter
This commit is contained in:
@@ -842,20 +842,20 @@ function shared.Config.Init()
|
||||
end)
|
||||
deathReporterConfigFrame:Add(duelThrottle, 2, 6)
|
||||
|
||||
local notifyChannel = CreateBasicSmallEditBox("HeimdallDeathReporterConfigNotifyChannel",
|
||||
deathReporterConfigFrame.frame, shared.L[Heimdall_Data.config.locale].config.notifyChannel,
|
||||
Heimdall_Data.config.deathReporter.notifyChannel,
|
||||
local masterChannel = CreateBasicSmallEditBox("HeimdallDeathReporterConfigMasterChannel",
|
||||
deathReporterConfigFrame.frame, shared.L[Heimdall_Data.config.locale].config.masterChannel,
|
||||
Heimdall_Data.config.deathReporter.masterChannel,
|
||||
function(self)
|
||||
local text = self:GetText()
|
||||
if string.match(text, "%S+") then
|
||||
Heimdall_Data.config.deathReporter.notifyChannel = text
|
||||
print("Notify channel set to", tostring(text))
|
||||
Heimdall_Data.config.deathReporter.masterChannel = text
|
||||
print("Master channel set to", tostring(text))
|
||||
else
|
||||
print("Invalid channel name", tostring(text))
|
||||
self:SetText(Heimdall_Data.config.deathReporter.notifyChannel)
|
||||
self:SetText(Heimdall_Data.config.deathReporter.masterChannel)
|
||||
end
|
||||
end)
|
||||
deathReporterConfigFrame:Add(notifyChannel, 2, 6)
|
||||
deathReporterConfigFrame:Add(masterChannel, 2, 6)
|
||||
|
||||
local zoneOverride = CreateBasicSmallEditBox("HeimdallDeathReporterConfigZoneOverride",
|
||||
deathReporterConfigFrame.frame, shared.L[Heimdall_Data.config.locale].config.zoneOverride,
|
||||
|
||||
Reference in New Issue
Block a user