From: Daniel Karbach Date: Mon, 14 Oct 2024 10:32:08 +0000 (+0200) Subject: require $ as a trigger for drawing X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;ds=sidebyside;p=ffmpeg-test.git require $ as a trigger for drawing --- 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); }