mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
Fix for command redirect of '#bot' using EVENT_COMMAND invocation
This commit is contained in:
+2
-2
@@ -13270,8 +13270,8 @@ void command_bot(Client *c, const Seperator *sep)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bot_command_dispatch(c, bot_message.c_str()) == -2) {
|
if (bot_command_dispatch(c, bot_message.c_str()) == -2) {
|
||||||
if (parse->PlayerHasQuestSub(EVENT_COMMAND)) {
|
if (parse->PlayerHasQuestSub(EVENT_BOT_COMMAND)) {
|
||||||
int i = parse->EventPlayer(EVENT_COMMAND, c, bot_message, 0);
|
int i = parse->EventPlayer(EVENT_BOT_COMMAND, c, bot_message, 0);
|
||||||
if (i == 0 && !RuleB(Chat, SuppressCommandErrors)) {
|
if (i == 0 && !RuleB(Chat, SuppressCommandErrors)) {
|
||||||
c->Message(Chat::Red, "Bot command '%s' not recognized.", bot_message.c_str());
|
c->Message(Chat::Red, "Bot command '%s' not recognized.", bot_message.c_str());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user