From 7da9f823ebd8b99de809da789259135ad7403454 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Tue, 5 Mar 2024 22:36:28 +0100 Subject: [PATCH] remove leftover code --- send.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/send.go b/send.go index f259530..63a510c 100644 --- a/send.go +++ b/send.go @@ -78,17 +78,12 @@ func (app *application) checkMessage(text string) (bool, string) { } // Send is used to send twitch replies and contains the necessary safeguards and logic for that. -// Send also logs the twitch.PrivateMessage contents into the database. func (app *application) send(target, message string) { // Message we are trying to send is empty. if len(message) == 0 { return } - if target == "forsen" { - return - } - // Since messages starting with `.` or `/` are used for special actions // (ban, whisper, timeout) and so on, we place an emote infront of it so // the actions wouldn't execute. `!` and `$` are common bot prefixes so we @@ -105,7 +100,6 @@ func (app *application) send(target, message string) { // Twitch has a maximum length for messages of 510 characters so to be safe // we split and check at 500 characters. // https://discuss.dev.twitch.tv/t/missing-client-side-message-length-check/21316 - // TODO: Make it so it splits at a space instead and not in the middle of a word. if len(message) > 500 { firstMessage := message[0:499] secondMessage := message[499:]