mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-23 10:34:52 +01:00
IRCHandlers: fix WHO case-sensitivity
This commit is contained in:
parent
9dbd84f6c5
commit
77233e4328
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user