add delete argument to purge script to manually delete a room

This commit is contained in:
HF 2023-07-08 11:17:58 +02:00
parent 01c9dc4825
commit 88598c4ecf

View File

@ -252,6 +252,11 @@ get_admin_token
exit 0
}
[ "${1}" = "delete" ] && [ "${2}" != "" ] && {
purge_room "${2}"
exit 0
}
check_rooms
disable_ratelimit
check_api_rooms