Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Demonid/5328372 to your computer and use it in GitHub Desktop.
Save Demonid/5328372 to your computer and use it in GitHub Desktop.
--- 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