mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +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 (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());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user