User specific motd see once

This commit is contained in:
mrfry 2020-11-13 18:21:35 +01:00
parent fa2fd6274f
commit 24dce3da2f
2 changed files with 6 additions and 2 deletions

View file

@ -160,7 +160,11 @@ function GetApp() {
`User #${id}'s user specific motd is now seen.`, `User #${id}'s user specific motd is now seen.`,
logger.GetColor('bluebg') logger.GetColor('bluebg')
) )
if (userSpecificMotd[id].seeOnce) {
delete userSpecificMotd[id]
} else {
userSpecificMotd[id].seen = true userSpecificMotd[id].seen = true
}
utils.WriteFile(JSON.stringify(userSpecificMotd), userSpecificMotdFile) utils.WriteFile(JSON.stringify(userSpecificMotd), userSpecificMotdFile)
} }
} }

@ -1 +1 @@
Subproject commit 94ac828d0bcb819a655292952a3f6007af053c12 Subproject commit 280e3e79ee7e01ff9c6f8e825da7cae75f556492