mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-02 20:57:28 +02:00
Users: my
command now properly finds user account in other channels
This commit is contained in:
parent
9afb8c506d
commit
04f624729a
@ -566,7 +566,8 @@ sub mycmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my ($found_channel, $found_hostmask) = $self->find_user_account($channel, $hostmask);
|
my ($found_channel, $found_hostmask) = $self->find_user_account($channel, $hostmask);
|
||||||
$found_channel = $channel if not defined $found_channel; # let DualIndexHashObject disambiguate
|
($found_channel, $found_hostmask) = $self->find_user_account('.*', $hostmask) if not defined $found_channel;
|
||||||
|
return "No user account found in $channel." if not defined $found_channel;
|
||||||
$result .= $self->{users}->set($found_channel, $found_hostmask, $key, $value);
|
$result .= $self->{users}->set($found_channel, $found_hostmask, $key, $value);
|
||||||
$result =~ s/^password => .*;?$/password => <private>;/m;
|
$result =~ s/^password => .*;?$/password => <private>;/m;
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user