Skip to content

Commit c047bdf

Browse files
authored
Merge pull request #11 from n42k/fix-leave-parser-kick-ban
fix leave parser not running on kick/ban
2 parents 617a9e7 + 4aaa0d6 commit c047bdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parsers/leave.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class LeaveParser extends BaseParser {
1717
if (generator !== 'LogNet')
1818
return null;
1919

20-
if (!line.startsWith('UNetConnection::Close:'))
20+
// this is not "UNetConnection" because the UNetConnection line does not occur on kick/ban
21+
if (!line.startsWith('UChannel::Close:'))
2122
return null;
2223

2324
const ownerRegExp = /Owner: (BP_PlayerController_C_\d+)/;

0 commit comments

Comments
 (0)