3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

Users: useradd now properly returns "added" message

This commit is contained in:
Pragmatic Software 2020-01-29 14:09:34 -08:00
parent 95f2cfdd55
commit 33d9faac52

View File

@ -365,7 +365,7 @@ sub useradd {
} }
$self->{pbot}->{users}->add_user($name, $channel, $hostmask, $level, $password); $self->{pbot}->{users}->add_user($name, $channel, $hostmask, $level, $password);
return not $level ? "User added." : "Admin added."; return !$level ? "User added." : "Admin added.";
} }
sub userdel { sub userdel {