Werewolf: Fixed a nasty lynch nick exploit.
This commit is contained in:
1 parent
503a7ed990
commit
38b3e4c3d8
2 files changed
+8
-4
No files matched your search
+7
-4
@@ -1498,10 +1498,13 @@ sub on_nick {
|
||||
$LYNCH{$new} = $LYNCH{lc $src->{nick}};
|
||||
delete $LYNCH{lc $src->{nick}};
|
||||
}
|
||||
while (my ($accu, $ser) = each %LYNCH) {
|
||||
if ($ser eq lc $src->{nick}) {
|
||||
$LYNCH{$accu}{$new} = 1;
|
||||
delete $LYNCH{$accu}{$ser};
|
||||
foreach my $accu ($sers) {
|
||||
%sers = %{$sers};
|
||||
foreach my $ser (%sers) {
|
||||
if ($ser eq lc $src->{nick}) {
|
||||
$LYNCH{$accu}{$new} = 1;
|
||||
delete $LYNCH{$accu}{$ser};
|
||||
}
|
||||
}
|
||||
}
|
||||
# That should be everything.
|
||||
|
||||
Reference in new issue
Block a user