Skip to content

Commit

Permalink
fix(BattlegroundsLogFilter): whitelist ZONE tags
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Apr 24, 2024
1 parent 404d921 commit 7e818e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hslog/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ def _handle_tag_change(self, msg: str, line: str):
buffered_item = self._current_buffer.buffer[i]
if (
isinstance(buffered_item, str) and
"TAG_CHANGE" in buffered_item
"TAG_CHANGE" in buffered_item and
# don't skip ZONE tags for now
"ZONE" not in buffered_item
):
buf = Buffer("TAG_CHANGE", "", parent=self._current_buffer)
buf.buffer.append(buffered_item)
Expand Down

0 comments on commit 7e818e5

Please sign in to comment.