Forked from Raydor/Trinitycore_LANG_UNIVERSAL_en_zona.diff
Created
April 7, 2013 00:58
-
-
Save Demonid/5328372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/server/game/Handlers/ChatHandler.cpp 2013-03-08 20:08:04.000000000 +0100 | |
+++ b/src/server/game/Handlers/ChatHandler.cpp 2013-03-10 19:24:11.966856051 +0100 | |
sLog->outError(LOG_FILTER_NETWORKIO, "Player %s (GUID: %u) sent a chatmessage with an invalid language/message type combination", | |
GetPlayer()->GetName().c_str(), GetPlayer()->GetGUIDLow()); | |
recvData.rfinish(); | |
return; | |
} | |
} | |
// LANG_ADDON should not be changed nor be affected by flood control | |
else | |
{ | |
+//Custom - LANG_UNIVERSAL in Duelzone and Mountshop. | |
+if(sender->GetZoneId() == 33 && !HasPermission(RBAC_PERM_TWO_SIDE_INTERACTION_CHAT )) | |
+lang = LANG_UNIVERSAL; | |
// send in universal language if player in .gmon mode (ignore spell effects) | |
if (sender->isGameMaster()) | |
lang = LANG_UNIVERSAL; | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment