Skip to content

Commit 7681ff0

Browse files
committed
Stopped processing bot messages #207
1 parent b1be9d8 commit 7681ff0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Fritz.Twitch/ChatClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ private void ProcessMessage(string msg)
230230
var message = "";
231231

232232
userName = ChatClient.reUserName.Match(msg).Groups[1].Value;
233+
if (userName == Settings.ChatBotName) return; // Exit and do not process if the bot posted this message
233234

234235
var badges = ChatClient.reBadges.Match(msg).Groups[1].Value.Split(',');
235236

0 commit comments

Comments
 (0)