Merge pull request #672 from diath/patch-motd

Fix last motd number saving
This commit is contained in:
Konrad Kuśnierz 2015-07-06 09:53:50 +02:00
commit 481adcdc21
1 changed files with 1 additions and 1 deletions

View File

@ -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()