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