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:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Submodule submodules/qmining-page updated: 94ac828d0b...280e3e79ee
Reference in New Issue
Block a user