Skip to content

Commit

Permalink
Fix crash when clearing Twitch chat buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
WarmUpTill committed Oct 18, 2024
1 parent dfaa704 commit f9e73a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/twitch/macro-condition-twitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ bool MacroConditionTwitch::CheckChatMessages(TwitchToken &token)
message->properties.isVIP ? "true" : "false");

if (_clearBufferOnMatch) {
_eventBuffer->Clear();
_chatBuffer->Clear();
}
return true;
}
Expand Down Expand Up @@ -481,7 +481,7 @@ bool MacroConditionTwitch::CheckChatUserJoinOrLeave(TwitchToken &token)
SetTempVarValue("user_login", message->source.nick);

if (_clearBufferOnMatch) {
_eventBuffer->Clear();
_chatBuffer->Clear();
}
return true;
}
Expand Down

0 comments on commit f9e73a2

Please sign in to comment.