mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Plugins/RestrictedMod: minor clean-up
This commit is contained in:
parent
a9c1f1eebd
commit
4be081d4be
@ -37,10 +37,10 @@ sub initialize {
|
|||||||
'list' => { subref => sub { $self->list(@_) }, help => "Lists available mod commands. Usage: mod list" },
|
'list' => { subref => sub { $self->list(@_) }, help => "Lists available mod commands. Usage: mod list" },
|
||||||
'kick' => { subref => sub { $self->kick(@_) }, help => "Kicks a nick from the channel. Usage: mod kick <nick>" },
|
'kick' => { subref => sub { $self->kick(@_) }, help => "Kicks a nick from the channel. Usage: mod kick <nick>" },
|
||||||
'ban' => { subref => sub { $self->ban(@_) }, help => "Bans a nick from the channel. Cannot be used to set a custom banmask. Usage: mod ban <nick>" },
|
'ban' => { subref => sub { $self->ban(@_) }, help => "Bans a nick from the channel. Cannot be used to set a custom banmask. Usage: mod ban <nick>" },
|
||||||
'kb' => { subref => sub { $self->kb(@_) }, help => "Kickbans a nick from the channel. Cannot be used to set a custom banmask. Usage: mod kb <nick>" },
|
|
||||||
'mute' => { subref => sub { $self->mute(@_) }, help => "Mutes a nick in the channel. Usage: mod mute <nick>" },
|
'mute' => { subref => sub { $self->mute(@_) }, help => "Mutes a nick in the channel. Usage: mod mute <nick>" },
|
||||||
'unban' => { subref => sub { $self->unban(@_) }, help => "Removes bans set by moderators. Cannot remove any other types of bans. Usage: mod unban <nick or mask>" },
|
'unban' => { subref => sub { $self->unban(@_) }, help => "Removes bans set by moderators. Cannot remove any other types of bans. Usage: mod unban <nick or mask>" },
|
||||||
'unmute' => { subref => sub { $self->unmute(@_) }, help => "Removes mutes set by moderators. Cannot remove any other types of mutes. Usage: mod unmute <nick or mask>" },
|
'unmute' => { subref => sub { $self->unmute(@_) }, help => "Removes mutes set by moderators. Cannot remove any other types of mutes. Usage: mod unmute <nick or mask>" },
|
||||||
|
'kb' => { subref => sub { $self->kb(@_) }, help => "Kickbans a nick from the channel. Cannot be used to set a custom banmask. Usage: mod kb <nick>" },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,11 +145,6 @@ sub ban {
|
|||||||
return $self->generic_command($stuff, 'ban');
|
return $self->generic_command($stuff, 'ban');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub ban {
|
|
||||||
my ($self, $stuff) = @_;
|
|
||||||
return $self->generic_command($stuff, 'ban');
|
|
||||||
}
|
|
||||||
|
|
||||||
sub mute {
|
sub mute {
|
||||||
my ($self, $stuff) = @_;
|
my ($self, $stuff) = @_;
|
||||||
return $self->generic_command($stuff, 'mute');
|
return $self->generic_command($stuff, 'mute');
|
||||||
|
Loading…
Reference in New Issue
Block a user