diff options
author | David Phillips <david@sighup.nz> | 2018-09-17 17:25:36 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-09-17 17:25:36 +1200 |
commit | acc3dd54a4c861e2cb02f0c3cb29ea40ce16f706 (patch) | |
tree | 713fd4e7c398bf35d33a6102975fedc321dbdc95 | |
parent | d56996493355dcef18c8466591aaff95b0b6be08 (diff) | |
download | idalius-acc3dd54a4c861e2cb02f0c3cb29ea40ce16f706.tar.xz |
Remove admin check in irc_msg
Use Admin.pm's own checks
Regression: removes check for nickserv ID entirely
-rwxr-xr-x | idalius.pl | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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); |