summaryrefslogtreecommitdiff
path: root/bot/src/commands/lua.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-04 17:03:45 +0500
committerilotterytea <iltsu@alright.party>2025-12-04 17:03:45 +0500
commit4dfecba2444f1457b91be46cee32169049a533c3 (patch)
tree17f2ee512b81da24d29f831bc691337eacc82ef4 /bot/src/commands/lua.cpp
parent5a1df5c2ba0c9793bc3b90b18cc37ae787e68c24 (diff)
feat: superuser role
Diffstat (limited to 'bot/src/commands/lua.cpp')
-rw-r--r--bot/src/commands/lua.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp
index 9e84f8e..0033cc5 100644
--- a/bot/src/commands/lua.cpp
+++ b/bot/src/commands/lua.cpp
@@ -1007,6 +1007,8 @@ namespace bot::command::lua {
this->level = schemas::PermissionLevel::BROADCASTER;
} else if (rights_text == "trusted") {
this->level = schemas::PermissionLevel::TRUSTED;
+ } else if (rights_text == "superuser") {
+ this->level = schemas::PermissionLevel::SUPERUSER;
} else {
this->level = schemas::PermissionLevel::USER;
}