From acc3dd54a4c861e2cb02f0c3cb29ea40ce16f706 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 17 Sep 2018 17:25:36 +1200 Subject: Remove admin check in irc_msg Use Admin.pm's own checks Regression: removes check for nickserv ID entirely --- idalius.pl | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/idalius.pl b/idalius.pl index c99f798..2b26d54 100755 --- a/idalius.pl +++ b/idalius.pl @@ -260,16 +260,6 @@ sub irc_public { sub irc_msg { my ($who, $to, $what, $ided) = @_[ARG0 .. ARG3]; my $nick = (split /!/, $who)[0]; - my $is_admin = grep {$_ eq $who} @{$config->{_}->{admins}}; - - # reject ignored nicks who aren't also admins (prevent lockout) - return if should_ignore($nick) and not $is_admin; - - if ($config->{_}->{must_id} && $ided != 1) { - $irc->yield(privmsg => $nick => "You must identify with services"); - return; - } - return unless $is_admin; my $stripped_what = strip_color(strip_formatting($what)); my $output = run_command($stripped_what, $who, $nick); -- cgit v1.1