mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +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;
|
||||
}
|
||||
|
||||
if (GetTarget() && GetTarget()->IsNPC()) {
|
||||
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());
|
||||
|
||||
ChannelMessageReceived(ChatChannel_Say, 0, 100, response.c_str());
|
||||
|
||||
return;
|
||||
if (!silentsaylink) {
|
||||
Message(Chat::LightGray, "You say, '%s'", response.c_str());
|
||||
}
|
||||
else {
|
||||
ChannelMessageReceived(ChatChannel_Say, 0, 100, response.c_str());
|
||||
if (!silentsaylink) {
|
||||
Message(Chat::LightGray, "You say, '%s'", response.c_str());
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
Message(Chat::Red, "Error: Say Link not found or is too long.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user