aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-09-17 17:25:36 +1200
committerDavid Phillips <david@sighup.nz>2018-09-17 17:25:36 +1200
commitacc3dd54a4c861e2cb02f0c3cb29ea40ce16f706 (patch)
tree713fd4e7c398bf35d33a6102975fedc321dbdc95
parentd56996493355dcef18c8466591aaff95b0b6be08 (diff)
downloadidalius-acc3dd54a4c861e2cb02f0c3cb29ea40ce16f706.tar.xz
Remove admin check in irc_msg
Use Admin.pm's own checks Regression: removes check for nickserv ID entirely
-rwxr-xr-xidalius.pl10
1 files changed, 0 insertions, 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);