Skip to content

Commit

Permalink
fix #30 to support non dalamud commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Aug 24, 2024
1 parent 45d7956 commit 1311d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Automaton/Features/EnhancedDutyStartEnd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void OnDutyStart(object? sender, ushort e)
if (!Config.StartMsg.IsNullOrEmpty())
{
if (Config.StartMsg.StartsWith('/'))
Svc.Commands.ProcessCommand(Config.StartMsg);
ECommons.Automation.Chat.Instance.SendMessage(Config.StartMsg);
else
ECommons.Automation.Chat.Instance.SendMessage($"/p {Config.StartMsg}");
}
Expand All @@ -104,7 +104,7 @@ private void OnDutyComplete(object? sender, ushort e)
if (!Config.EndMsg.IsNullOrEmpty())
{
if (Config.EndMsg.StartsWith('/'))
Svc.Commands.ProcessCommand(Config.EndMsg);
ECommons.Automation.Chat.Instance.SendMessage(Config.EndMsg);
else
ECommons.Automation.Chat.Instance.SendMessage($"/p {Config.EndMsg}");
}
Expand Down

0 comments on commit 1311d74

Please sign in to comment.