mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Wasn't quite dead... (Removed substring call from silent saylink parsing)
This commit is contained in:
parent
9bdb70b2f0
commit
61790ef195
@ -8290,11 +8290,11 @@ void Client::Handle_OP_ItemLinkClick(const EQApplicationPacket *app)
|
||||
parse->EventNPC(EVENT_SAY, GetTarget()->CastToNPC(), this, response.c_str(), 0);
|
||||
|
||||
if (response[0] == '#' && parse->PlayerHasQuestSub(EVENT_COMMAND)) {
|
||||
parse->EventPlayer(EVENT_COMMAND, this, response.substr(1).c_str(), 0);
|
||||
parse->EventPlayer(EVENT_COMMAND, this, response.c_str(), 0);
|
||||
}
|
||||
#ifdef BOTS
|
||||
else if (response[0] == '^' && parse->PlayerHasQuestSub(EVENT_BOT_COMMAND)) {
|
||||
parse->EventPlayer(EVENT_BOT_COMMAND, this, response.substr(1).c_str(), 0);
|
||||
parse->EventPlayer(EVENT_BOT_COMMAND, this, response.c_str(), 0);
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
@ -8310,11 +8310,11 @@ void Client::Handle_OP_ItemLinkClick(const EQApplicationPacket *app)
|
||||
else {
|
||||
if (silentsaylink) {
|
||||
if (response[0] == '#' && parse->PlayerHasQuestSub(EVENT_COMMAND)) {
|
||||
parse->EventPlayer(EVENT_COMMAND, this, response.substr(1).c_str(), 0);
|
||||
parse->EventPlayer(EVENT_COMMAND, this, response.c_str(), 0);
|
||||
}
|
||||
#ifdef BOTS
|
||||
else if (response[0] == '^' && parse->PlayerHasQuestSub(EVENT_BOT_COMMAND)) {
|
||||
parse->EventPlayer(EVENT_BOT_COMMAND, this, response.substr(1).c_str(), 0);
|
||||
parse->EventPlayer(EVENT_BOT_COMMAND, this, response.c_str(), 0);
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user