From 78bdf20603a9603b07de581874368621534cd138 Mon Sep 17 00:00:00 2001 From: Kamil Chojnowski Date: Mon, 6 Jul 2015 07:38:01 +0200 Subject: [PATCH] Fix last motd number saving --- modules/client_entergame/entergame.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client_entergame/entergame.lua b/modules/client_entergame/entergame.lua index 81ab23cf..2356ec41 100644 --- a/modules/client_entergame/entergame.lua +++ b/modules/client_entergame/entergame.lua @@ -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()