Fix last motd number saving

This commit is contained in:
Kamil Chojnowski 2015-07-06 07:38:01 +02:00
parent 0642fb66cd
commit 78bdf20603
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
local lastMotdNumber = g_settings.getNumber("motd")
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)
connect(motdWindow, { onOk = function() CharacterList.show() motdWindow = nil end })
CharacterList.hide()