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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp
index e8ac0c2..2665b68 100644
--- a/bot/src/commands/lua.cpp
+++ b/bot/src/commands/lua.cpp
@@ -332,7 +332,8 @@ namespace bot::command::lua {
std::map<std::string, std::string> token_map = {
{"{sender.alias_name}", request["sender"]["alias_name"]},
{"{source.alias_name}", request["channel"]["alias_name"]},
- {"{default.prefix}", DEFAULT_PREFIX}};
+ {"{default.prefix}", DEFAULT_PREFIX},
+ {"{channel.prefix}", request["channel_preference"]["prefix"]}};
for (const auto &pair : token_map) {
int pos = line.find(pair.first);