aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Admin.pm
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-09-23 18:07:29 +1200
committerDavid Phillips <david@sighup.nz>2018-09-23 18:07:29 +1200
commit2e0e3df2ac93946f1473040e608593df9827e862 (patch)
tree652c80e7ed7558f1e2fa5a50d80832784f7c17b8 /Plugin/Admin.pm
parent4dba8e757ed484450e71129fc5966c2512735aea (diff)
downloadidalius-2e0e3df2ac93946f1473040e608593df9827e862.tar.xz
Admin: use correct config for ignore
Diffstat (limited to 'Plugin/Admin.pm')
-rw-r--r--Plugin/Admin.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Plugin/Admin.pm b/Plugin/Admin.pm
index 518a076..ff8b646 100644
--- a/Plugin/Admin.pm
+++ b/Plugin/Admin.pm
@@ -191,7 +191,7 @@ sub ignore {
return unless is_admin($logger, $who, $ided);
return "Syntax: ignore <nick>" unless @arguments == 1;
- push @{$config->{ignore}}, $arguments[0];
+ push @{$root_config->{ignore}}, $arguments[0];
return "Ignoring $arguments[0]";
}
@@ -204,8 +204,8 @@ sub do_not_ignore {
my $target = $arguments[0];
- if (grep { $_ eq $target} @{$config->{ignore}}) {
- @{$config->{ignore}} = grep { $_ ne $target } @{$config->{ignore}};
+ if (grep { $_ eq $target} @{$root_config->{ignore}}) {
+ @{$root_config->{ignore}} = grep { $_ ne $target } @{$root_config->{ignore}};
return "No longer ignoring $target.";
} else {
return "I wasn't ignoring $target anyway.";
@@ -218,7 +218,7 @@ sub dump_ignore {
return "Syntax: who are you ignoring?" unless @arguments == 0;
# FIXME special case for empty ignore
- return "I am ignoring: " . join ", ", @{$config->{ignore}};
+ return "I am ignoring: " . join ", ", @{$root_config->{ignore}};
}
sub exit {