diff --git a/Plugins/RestrictedMod.pm b/Plugins/RestrictedMod.pm index 0f52120d..1578eb55 100644 --- a/Plugins/RestrictedMod.pm +++ b/Plugins/RestrictedMod.pm @@ -77,7 +77,10 @@ sub generic_command { } } - return "I do not have OPs for this channel. I cannot do any moderation here." if not $self->{pbot}->{chanops}->can_gain_ops($channel); + return "I do not have OPs for this channel. I cannot do any moderation here." + if not $self->{pbot}->{chanops}->can_gain_ops($channel); + return "Voiced channel moderation is not enabled for this channel. Use `regset $channel.restrictedmod 1` to enable." + if not $self->{pbot}->{registry}->get_value($channel, 'restrictedmod'); my $hostmask = "$stuff->{nick}!$stuff->{user}\@$stuff->{host}"; my $admin = $self->{pbot}->{users}->loggedin_admin($channel, $hostmask); my $voiced = $self->{pbot}->{nicklist}->get_meta($channel, $stuff->{nick}, '+v');