diff options
Diffstat (limited to 'src/bot.cpp')
-rw-r--r-- | src/bot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bot.cpp b/src/bot.cpp index d5f21de..2bc6a6b 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -150,7 +150,7 @@ void Bot::onMessage(const dpp::message_create_t &message) { result.push_back(std::string(begin, str)); } while (0 != *str++); core->log(dpp::ll_debug, "Attempting to call FOREACH_MOD"); - FOREACH_MOD(I_OnCommand,OnCommand(message, result[0], result)); + FOREACH_MOD(I_OnCommand,OnCommand(message, lowercase(result[0].erase(0,1)), result)); } else { /* Call modules */ |