]> git.localhorst.tv Git - ffmpeg-test.git/commitdiff
require $ as a trigger for drawing master
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 14 Oct 2024 10:32:08 +0000 (12:32 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 14 Oct 2024 10:32:08 +0000 (12:32 +0200)
src/app/Application.h

index 01e5f833f71baa26668d2fc1ce48d0f4e796aedc..24b68c5a3a75fad954dffe8f312053d232cccb41 100644 (file)
@@ -130,9 +130,8 @@ private:
        }
 
        void HandleTwitch(const twitch::IRCMessage &msg) {
        }
 
        void HandleTwitch(const twitch::IRCMessage &msg) {
-               if (msg.nick == "horstiebot") return;
                std::string text = msg.GetText();
                std::string text = msg.GetText();
-               if (text.empty()) return;
+               if (text.length() < 2 || text[0] != '$') return;
                drawing_game.QueueCommands(text);
        }
 
                drawing_game.QueueCommands(text);
        }