mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-26 20:52:37 +01:00
BotAdminCommands: adminset
now hides password field when listing all keys
This commit is contained in:
parent
4dacbfeb7a
commit
2822029aaa
@ -220,7 +220,9 @@ sub adminset {
|
||||
return "You may not modify admins higher in level than you.";
|
||||
}
|
||||
|
||||
return $self->{pbot}->{admins}->{admins}->set($channel, $hostmask, $key, $value);
|
||||
my $result = $self->{pbot}->{admins}->{admins}->set($channel, $hostmask, $key, $value);
|
||||
$result =~ s/^password => .*;$/password => <private>;/m;
|
||||
return $result;
|
||||
}
|
||||
|
||||
sub adminunset {
|
||||
|
Loading…
Reference in New Issue
Block a user