Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Exclude privileges from nicknames
Another fix to the camelia detector hack.
  • Loading branch information
AlexDaniel committed Oct 29, 2016
1 parent 8fc3153 commit 65bca16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Evalable.p6
Expand Up @@ -116,7 +116,8 @@ has %!temp-users;

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

0 comments on commit 65bca16

Please sign in to comment.