Merge pull request #672 from diath/patch-motd
Fix last motd number saving
This commit is contained in:
commit
481adcdc21
|
@ -78,7 +78,7 @@ local function onCharacterList(protocol, characters, account, otui)
|
||||||
if motdEnabled then
|
if motdEnabled then
|
||||||
local lastMotdNumber = g_settings.getNumber("motd")
|
local lastMotdNumber = g_settings.getNumber("motd")
|
||||||
if G.motdNumber and G.motdNumber ~= lastMotdNumber then
|
if G.motdNumber and G.motdNumber ~= lastMotdNumber then
|
||||||
g_settings.set("motd", motdNumber)
|
g_settings.set("motd", G.motdNumber)
|
||||||
motdWindow = displayInfoBox(tr('Message of the day'), G.motdMessage)
|
motdWindow = displayInfoBox(tr('Message of the day'), G.motdMessage)
|
||||||
connect(motdWindow, { onOk = function() CharacterList.show() motdWindow = nil end })
|
connect(motdWindow, { onOk = function() CharacterList.show() motdWindow = nil end })
|
||||||
CharacterList.hide()
|
CharacterList.hide()
|
||||||
|
|
Loading…
Reference in New Issue