mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Nice Commit! :)
This commit is contained in:
@@ -64,6 +64,8 @@ void ClientPackets::HandleChatMessage(const SystemAddress& sysAddr, Packet* pack
|
|||||||
|
|
||||||
std::string playerName = user->GetLastUsedChar()->GetName();
|
std::string playerName = user->GetLastUsedChar()->GetName();
|
||||||
bool isMythran = user->GetLastUsedChar()->GetGMLevel() > 0;
|
bool isMythran = user->GetLastUsedChar()->GetGMLevel() > 0;
|
||||||
|
Game::logger->Log("IsUserMythran", "%s", isMythran?"Yes, they are mythran\n":"No, they are not mythran\n");
|
||||||
|
Game::logger->Log("IsMessageApproved", "%s", user->GetLastChatMessageApproved()?"Yes, Their message is approved\n":"No, their message is not approved\n");
|
||||||
|
|
||||||
if (!user->GetLastChatMessageApproved() && !isMythran) return;
|
if (!user->GetLastChatMessageApproved() && !isMythran) return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user