3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 23:39:24 +01:00

BotAdminCommands: adminset now hides password field when listing all keys

This commit is contained in:
Pragmatic Software 2020-01-04 22:39:58 -08:00
parent 4dacbfeb7a
commit 2822029aaa

View File

@ -220,7 +220,9 @@ sub adminset {
return "You may not modify admins higher in level than you."; 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 { sub adminunset {