3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

IRCHandlers: fix WHO case-sensitivity

This commit is contained in:
Pragmatic Software 2020-01-04 00:21:19 -08:00
parent 9dbd84f6c5
commit 77233e4328

View File

@ -591,6 +591,7 @@ sub on_whoreply {
my $channel;
if ($id =~ m/^#/) {
$id = lc $id;
foreach my $x (keys %who_cache) {
if ($who_cache{$x} eq $id) {
$id = $x;
@ -673,6 +674,7 @@ sub on_endofwho {
sub send_who {
my ($self, $channel) = @_;
$channel = lc $channel;
$self->{pbot}->{logger}->log("pending WHO to $channel\n");
for (my $id = 1; $id < 99; $id++) {