Skip to content

Commit 65bca16

Browse files
committed
Exclude privileges from nicknames
Another fix to the camelia detector hack.
1 parent 8fc3153 commit 65bca16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Evalable.p6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ has %!temp-users;
116116

117117
method irc-n353 ($e) {
118118
my $channel = $e.args[2];
119-
my @nicks = $e.args[3].words;
119+
# Try to filter out privileges ↓
120+
my @nicks = $e.args[3].words.map: { m/ (<[\w \[ \] \ ^ { } | ` -]>+) $/[0].Str };
120121
%!temp-users{$channel} //= SetHash.new;
121122
%!temp-users{$channel}{@nicks} = True xx @nicks;
122123
}

0 commit comments

Comments
 (0)