Don't show motd if not available

This commit is contained in:
fed
2023-03-06 13:22:05 +01:00
parent d0e148bd54
commit 6434b0ac87
4 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,10 @@ LUI.MenuBuilder.registerPopupType("motd", function()
end)
LUI.onmenuopen("main_campaign", function(menu)
if (not motd.hasmotd()) then
return
end
if (not motd.hasseentoday()) then
motd.sethasseentoday()
LUI.FlowManager.RequestPopupMenu(nil, "motd")