Skip to content

Commit

Permalink
[notification] Fixed faction-travelling notification for users hosp…
Browse files Browse the repository at this point in the history
…italized abroad

Specifically to fix hospitalized users where the country begins in a
vowel

Signed-off-by: tiksan <[email protected]>
  • Loading branch information
dssecret committed Feb 1, 2025
1 parent 2022936 commit 3595f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notifications/faction-traveling/code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ for member_id, member_data in pairs(faction.members) do
member_table.status = nil
member_table.landed = true
member_table.earliest_departure_time = nil
elseif member_data.status.state == "Hospital" and string.starts_with(member_data.status.description, "In a ") and string.find(member_data.status.description, "hospital") then
-- The faction member is in the hospital abroad
elseif member_data.status.state == "Hospital" and string.starts_with(member_data.status.description, "In a") and string.find(member_data.status.description, "hospital") then
-- The faction member is in an hospital abroad
member_table.status = member_data.status
member_table.landed = true
member_table.earliest_departure_time = nil
Expand Down

0 comments on commit 3595f45

Please sign in to comment.