mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-16 22:29:36 -05:00
Fix crash when clearing Twitch chat buffer
This commit is contained in:
@@ -446,7 +446,7 @@ bool MacroConditionTwitch::CheckChatMessages(TwitchToken &token)
|
||||
message->properties.isVIP ? "true" : "false");
|
||||
|
||||
if (_clearBufferOnMatch) {
|
||||
_eventBuffer->Clear();
|
||||
_chatBuffer->Clear();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -481,7 +481,7 @@ bool MacroConditionTwitch::CheckChatUserJoinOrLeave(TwitchToken &token)
|
||||
SetTempVarValue("user_login", message->source.nick);
|
||||
|
||||
if (_clearBufferOnMatch) {
|
||||
_eventBuffer->Clear();
|
||||
_chatBuffer->Clear();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user