mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01: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);
|
||||
$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 =~ s/^password => .*;?$/password => <private>;/m;
|
||||
return $result;
|
||||
|
Loading…
Reference in New Issue
Block a user