Skip to content

Commit

Permalink
Fix Hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
LordBombardir committed Jan 1, 2025
1 parent b7942f4 commit 74bcc1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mod/hooks/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ LL_TYPE_INSTANCE_HOOK(
PlayerSendMessageHook,
HookPriority::High,
ServerNetworkHandler,
&ServerNetworkHandler::handle,
&ServerNetworkHandler::$handle,
void,
const NetworkIdentifier& identifier,
const TextPacket& packet
) {
if (optional_ref<ServerPlayer> player = _getServerPlayer(identifier, packet.mClientSubId); player != nullptr) {
const object::Rank& rank = manager::MainManager::getPlayerRankOrSetDefault(player);
if (ServerPlayer* player = _getServerPlayer(identifier, packet.mClientSubId); player != nullptr) {
const object::Rank& rank = manager::MainManager::getPlayerRankOrSetDefault(*player);
TextPacket otherPacket = TextPacket::createRawMessage(
Utils::strReplace(
rank.getChatFormat(),
Expand Down

0 comments on commit 74bcc1e

Please sign in to comment.