mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
[Bug Fix] Fix Duplicate Silent Saylink Messages (#2386)
Clicking silent saylinks was sending the message twice if you had an NPC targeted due to duplicate code within ChannelMessageReceived.
This commit is contained in:
parent
893d53425a
commit
c954685239
@ -8528,26 +8528,13 @@ void Client::Handle_OP_ItemLinkClick(const EQApplicationPacket *app)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetTarget() && GetTarget()->IsNPC()) {
|
ChannelMessageReceived(ChatChannel_Say, 0, 100, response.c_str());
|
||||||
if (silentsaylink) {
|
|
||||||
parse->EventNPC(EVENT_SAY, GetTarget()->CastToNPC(), this, response, 0);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Message(Chat::LightGray, "You say, '%s'", response.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
ChannelMessageReceived(ChatChannel_Say, 0, 100, response.c_str());
|
if (!silentsaylink) {
|
||||||
|
Message(Chat::LightGray, "You say, '%s'", response.c_str());
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
ChannelMessageReceived(ChatChannel_Say, 0, 100, response.c_str());
|
|
||||||
if (!silentsaylink) {
|
|
||||||
Message(Chat::LightGray, "You say, '%s'", response.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Message(Chat::Red, "Error: Say Link not found or is too long.");
|
Message(Chat::Red, "Error: Say Link not found or is too long.");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user