mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
[Cleanup] Make use of AccountStatus constants wherever status is checked or used. (#1764)
* [Cleanup] Make use of AccountStatus constants wherever status is checked or used. - Cleanup all instances of SendEmoteMessage. - Cleanup all instances of SendEmoteMessageRaw. - Cleanup all instances of MessageStatus. - Convert Quest API method defaults to use constants. * Cleanup constant names.
This commit is contained in:
@@ -533,7 +533,7 @@ bool Client::Process() {
|
||||
OnDisconnect(true);
|
||||
LogInfo("Client linkdead: {}", name);
|
||||
|
||||
if (Admin() > 100) {
|
||||
if (Admin() > AccountStatus::GMAdmin) {
|
||||
if (GetMerc()) {
|
||||
GetMerc()->Save();
|
||||
GetMerc()->Depop();
|
||||
@@ -1729,7 +1729,7 @@ void Client::OPGMSummon(const EQApplicationPacket *app)
|
||||
}
|
||||
else
|
||||
{
|
||||
if(admin < 80)
|
||||
if(admin < AccountStatus::QuestTroupe)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user