From dc9310e5ff22c71c688e0248204c79727698ccd8 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Wed, 17 Sep 2025 20:57:23 +0100 Subject: [PATCH] tidy up --- SecondBotEvents/Services/EventsService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SecondBotEvents/Services/EventsService.cs b/SecondBotEvents/Services/EventsService.cs index ffc68ac..d5b1ef4 100644 --- a/SecondBotEvents/Services/EventsService.cs +++ b/SecondBotEvents/Services/EventsService.cs @@ -268,8 +268,12 @@ namespace SecondBotEvents.Services { GetClient().Self.InstantMessage(OutputAvatar, output); } - if(myConfig.GetOutputHttpURL() != null) + if(SecondbotHelpers.isempty(myConfig.GetOutputHttpURL()) == false) { + if(myConfig.GetOutputHttpURL().StartsWith("http") == false) + { + return; + } long unixtime = SecondbotHelpers.UnixTimeNow(); string token = SecondbotHelpers.GetSHA1(unixtime.ToString() + "EventService" + GetClient().Self.AgentID + output + master.CommandsService.myConfig.GetSharedSecret()); var client = new RestClient(myConfig.GetOutputHttpURL());