commented security hacks

This commit is contained in:
yehonal 2016-07-06 15:26:52 +02:00 committed by Yehonal
parent b88e0fe9a8
commit aaa7a82ca0
2 changed files with 7 additions and 3 deletions

View File

@ -78,12 +78,14 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket & recvData)
case CHAT_MSG_PARTY_LEADER:
break;
default:
if (sender->GetTotalPlayedTime() < 2*HOUR)
/*[AZTH] we should enable it using a conf
if (sender->GetTotalPlayedTime() < 2*HOUR)
{
SendNotification("Speaking is allowed after playing for at least 2 hours. You may use party and guild chat.");
recvData.rfinish();
return;
}
}*/
break;
}
// pussywizard:

View File

@ -1543,11 +1543,13 @@ public:
return true;
}
if (handler->GetSession()->GetSecurity() < SEC_ADMINISTRATOR)
/* [AZTH] Sunwell hack
if (handler->GetSession()->GetSecurity() < SEC_ADMINISTRATOR)
{
handler->PSendSysMessage("You may only remove items. Adding items is available for higher GMLevel.");
return false;
}
*/
// Adding items
uint32 noSpaceForCount = 0;