mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-28 20:07:56 +00:00
[Bug Fix] Fix Silent Saylinks Sending Message to Others. (#2389)
* [Bug Fix] Fix Silent Saylinks Sending Message to Others. Silent saylinks wouldn't send to sender, but to everyone else, so they could see what your saylinks were. Added an optional `is_silent` bool to ChannelMessageReceived to account for this where necessary. * Nullptr fix.
This commit is contained in:
@@ -1566,7 +1566,7 @@ void Perl_Client_SilentMessage(Client* self, const char* message) // @categories
|
||||
if (self->GetTarget()->CastToNPC()->IsMoving() &&
|
||||
!self->GetTarget()->CastToNPC()->IsOnHatelist(self->GetTarget()))
|
||||
self->GetTarget()->CastToNPC()->PauseWandering(RuleI(NPC, SayPauseTimeInSec));
|
||||
self->ChannelMessageReceived(8, 0, 100, message);
|
||||
self->ChannelMessageReceived(8, 0, 100, message, nullptr, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user