3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 19:52:34 +01:00

BotAdminCommands: ensure sl has valid arguments

This commit is contained in:
Pragmatic Software 2019-12-28 23:04:41 -08:00
parent e0b08ebf91
commit b4f63a0be4

View File

@ -61,6 +61,10 @@ sub sl {
my $self = shift;
my ($from, $nick, $user, $host, $arguments) = @_;
if (not length $arguments) {
return "Usage: sl <ircd command>";
}
$self->{pbot}->{conn}->sl($arguments);
return "";
}