3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02: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 "";
}