From d761c2f58532e70f7d4ffade6926d70287cab383 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 14 Oct 2024 12:32:08 +0200 Subject: [PATCH] require $ as a trigger for drawing --- src/app/Application.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/Application.h b/src/app/Application.h index 01e5f83..24b68c5 100644 --- a/src/app/Application.h +++ b/src/app/Application.h @@ -130,9 +130,8 @@ private: } void HandleTwitch(const twitch::IRCMessage &msg) { - if (msg.nick == "horstiebot") return; std::string text = msg.GetText(); - if (text.empty()) return; + if (text.length() < 2 || text[0] != '$') return; drawing_game.QueueCommands(text); } -- 2.39.2