mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +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:
+3
-3
@@ -49,7 +49,7 @@ void Client::SendPathPacket(const std::vector<FindPerson_Point> &points) {
|
||||
.Then([this](const EQ::Any &result) {
|
||||
auto points = EQ::any_cast<std::vector<FindPerson_Point>>(result);
|
||||
if (points.size() < 2) {
|
||||
if (Admin() > 10) {
|
||||
if (Admin() > AccountStatus::Steward) {
|
||||
Message(Chat::System, "Too few points");
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ void Client::SendPathPacket(const std::vector<FindPerson_Point> &points) {
|
||||
}
|
||||
|
||||
if (points.size() > 36) {
|
||||
if (Admin() > 10) {
|
||||
if (Admin() > AccountStatus::Steward) {
|
||||
Message(Chat::System, "Too many points %u", points.size());
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ void Client::SendPathPacket(const std::vector<FindPerson_Point> &points) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Admin() > 10) {
|
||||
if (Admin() > AccountStatus::Steward) {
|
||||
Message(Chat::System, "Total points %u", points.size());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user