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:
parent
e0b08ebf91
commit
b4f63a0be4
@ -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 "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user