mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
User specific motd see once
This commit is contained in:
parent
fa2fd6274f
commit
24dce3da2f
2 changed files with 6 additions and 2 deletions
|
@ -160,7 +160,11 @@ function GetApp() {
|
|||
`User #${id}'s user specific motd is now seen.`,
|
||||
logger.GetColor('bluebg')
|
||||
)
|
||||
userSpecificMotd[id].seen = true
|
||||
if (userSpecificMotd[id].seeOnce) {
|
||||
delete userSpecificMotd[id]
|
||||
} else {
|
||||
userSpecificMotd[id].seen = true
|
||||
}
|
||||
utils.WriteFile(JSON.stringify(userSpecificMotd), userSpecificMotdFile)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 94ac828d0bcb819a655292952a3f6007af053c12
|
||||
Subproject commit 280e3e79ee7e01ff9c6f8e825da7cae75f556492
|
Loading…
Add table
Add a link
Reference in a new issue