mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-12 05:42:26 +00:00
Don't log expired lockouts in expedition request
Removes logging of lockouts with timer under leeway rule
This commit is contained in:
parent
184ea679f2
commit
3843ed6540
@ -166,15 +166,8 @@ bool ExpeditionRequest::LoadLeaderLockouts()
|
|||||||
|
|
||||||
for (auto& lockout : lockouts)
|
for (auto& lockout : lockouts)
|
||||||
{
|
{
|
||||||
// client window hides timers with less than 60s remaining, optionally count them as expired
|
bool is_expired = lockout.IsExpired() || lockout.GetSecondsRemaining() <= leeway_seconds;
|
||||||
if (lockout.GetSecondsRemaining() <= leeway_seconds)
|
if (!is_expired)
|
||||||
{
|
|
||||||
LogExpeditionsModerate(
|
|
||||||
"Ignoring leader [{}] lockout [{}] with [{}s] remaining due to leeway rule [{}s]",
|
|
||||||
m_leader_id, lockout.GetEventName(), lockout.GetSecondsRemaining(), leeway_seconds
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
m_lockouts.emplace(lockout.GetEventName(), lockout);
|
m_lockouts.emplace(lockout.GetEventName(), lockout);
|
||||||
|
|
||||||
@ -248,15 +241,11 @@ bool ExpeditionRequest::CheckMembersForConflicts(const std::vector<std::string>&
|
|||||||
|
|
||||||
ExpeditionLockoutTimer lockout{row[3], m_expedition_name, row[6], expire_time, duration};
|
ExpeditionLockoutTimer lockout{row[3], m_expedition_name, row[6], expire_time, duration};
|
||||||
|
|
||||||
// client window hides timers with less than 60s remaining, optionally count them as expired
|
// client window hides timers with less than 60s remaining, optionally count as expired
|
||||||
if (lockout.GetSecondsRemaining() <= leeway_seconds)
|
bool is_expired = lockout.IsExpired() || lockout.GetSecondsRemaining() <= leeway_seconds;
|
||||||
|
if (!is_expired)
|
||||||
{
|
{
|
||||||
LogExpeditionsModerate(
|
if (lockout.IsReplayTimer())
|
||||||
"Ignoring character [{}] lockout [{}] with [{}s] remaining due to leeway rule [{}s]",
|
|
||||||
character_id, lockout.GetEventName(), lockout.GetSecondsRemaining(), leeway_seconds
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else if (lockout.IsReplayTimer())
|
|
||||||
{
|
{
|
||||||
// replay timer conflict messages always show up before event conflicts
|
// replay timer conflict messages always show up before event conflicts
|
||||||
has_conflicts = true;
|
has_conflicts = true;
|
||||||
@ -274,6 +263,7 @@ bool ExpeditionRequest::CheckMembersForConflicts(const std::vector<std::string>&
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// event lockout messages for last processed character
|
// event lockout messages for last processed character
|
||||||
for (const auto& member_lockout : member_lockout_conflicts)
|
for (const auto& member_lockout : member_lockout_conflicts)
|
||||||
@ -295,7 +285,8 @@ void ExpeditionRequest::SendLeaderMessage(
|
|||||||
|
|
||||||
void ExpeditionRequest::SendLeaderMemberInExpedition(const std::string& member_name, bool is_solo)
|
void ExpeditionRequest::SendLeaderMemberInExpedition(const std::string& member_name, bool is_solo)
|
||||||
{
|
{
|
||||||
if (m_disable_messages) {
|
if (m_disable_messages)
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user