mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 12:12: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 $self = shift;
|
||||||
my ($from, $nick, $user, $host, $arguments) = @_;
|
my ($from, $nick, $user, $host, $arguments) = @_;
|
||||||
|
|
||||||
|
if (not length $arguments) {
|
||||||
|
return "Usage: sl <ircd command>";
|
||||||
|
}
|
||||||
|
|
||||||
$self->{pbot}->{conn}->sl($arguments);
|
$self->{pbot}->{conn}->sl($arguments);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user