summaryrefslogtreecommitdiff
path: root/bot/src/commands/lua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/commands/lua.cpp')
-rw-r--r--bot/src/commands/lua.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp
index 0c02bf5..460fe25 100644
--- a/bot/src/commands/lua.cpp
+++ b/bot/src/commands/lua.cpp
@@ -953,6 +953,14 @@ namespace bot::command::lua {
}
}
+ sol::table aliases = data["aliases"];
+ for (auto &k : aliases) {
+ sol::object value = k.second;
+ if (value.is<std::string>()) {
+ this->aliases.push_back(value.as<std::string>());
+ }
+ }
+
std::string rights_text = data["minimal_rights"];
if (rights_text == "suspended") {
this->level = schemas::PermissionLevel::SUSPENDED;