Skip to content

Commit afcc72e

Browse files
committed
updates
1 parent 4ef0772 commit afcc72e

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

EQTool/Services/Handlers/BoatHandler.cs

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using EQTool.Models;
2-
using EQTool.ViewModels;
32
using EQToolShared.APIModels.BoatControllerModels;
3+
using System.Threading.Tasks;
44

55
namespace EQTool.Services.Handlers
66
{
@@ -16,14 +16,17 @@ public BoatHandler(PigParseApi pigParseApi, BaseHandlerData baseHandlerData) : b
1616

1717
private void LogEvents_BoatEvent(object sender, BoatEvent e)
1818
{
19-
var s = this.activePlayer.Player?.Server;
19+
var s = activePlayer.Player?.Server;
2020
if (s.HasValue)
2121
{
22-
pigParseApi.SendBoatData(new BoatActivityRequest
22+
_ = Task.Factory.StartNew(() =>
2323
{
24-
Boat = e.Boat,
25-
Server = s.Value,
26-
StartPoint = e.StartPoint
24+
pigParseApi.SendBoatData(new BoatActivityRequest
25+
{
26+
Boat = e.Boat,
27+
Server = s.Value,
28+
StartPoint = e.StartPoint
29+
});
2730
});
2831
}
2932
}

EQTool/Services/IO/FileReader.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public List<string> ReadNext(string filepath)
6767

6868
linelist = templinelist.GetRange(lastfoundindex, templinelist.Count - lastfoundindex);
6969
linelist = linelist.Where(a =>
70-
a.StartsWith("Welcome to EverQuest!") ||
71-
a.StartsWith("You have entered") ||
72-
a.StartsWith("MESSAGE OF THE DAY") ||
73-
a.StartsWith("GUILD MOTD")
70+
a.Contains("Welcome to EverQuest!") ||
71+
a.Contains("You have entered") ||
72+
a.Contains("MESSAGE OF THE DAY") ||
73+
a.Contains("GUILD MOTD")
7474
).ToList();
7575
}
7676
else

0 commit comments

Comments
 (0)