3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-17 09:29:30 +01:00

Remove "modules" and "admins" from export command

This commit is contained in:
Pragmatic Software 2019-12-30 19:34:13 -08:00
parent 8896f4f1bb
commit b40eb16394

View File

@ -293,20 +293,12 @@ sub export {
my ($from, $nick, $user, $host, $arguments) = @_;
if (not defined $arguments) {
return "/msg $nick Usage: export <modules|factoids|admins>";
}
if ($arguments =~ /^modules$/i) {
return "/msg $nick Coming soon.";
return "/msg $nick Usage: export <factoids>";
}
if ($arguments =~ /^factoids$/i) {
return $self->{pbot}->{factoids}->export_factoids;
}
if ($arguments =~ /^admins$/i) {
return "/msg $nick Coming soon.";
}
}
sub evalcmd {