aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Map.pm
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-09-17 17:50:53 +1200
committerDavid Phillips <david@sighup.nz>2018-09-17 17:51:02 +1200
commit0168a87290dccb8548b4943aca6a43b1a2567a96 (patch)
tree59f657c45c3e0aeca7586c07808a67430e499b66 /Plugin/Map.pm
parentacc3dd54a4c861e2cb02f0c3cb29ea40ce16f706 (diff)
downloadidalius-0168a87290dccb8548b4943aca6a43b1a2567a96.tar.xz
Add must_id functionality back
Fixes regression in acc3dd54a4c861e2cb02f0c3cb29ea40ce16f706
Diffstat (limited to 'Plugin/Map.pm')
-rw-r--r--Plugin/Map.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugin/Map.pm b/Plugin/Map.pm
index 1e24f9c..42856eb 100644
--- a/Plugin/Map.pm
+++ b/Plugin/Map.pm
@@ -19,7 +19,7 @@ sub configure {
sub map {
- my ($self, $irc, $logger, $who, $where, $rest, @arguments) = @_;
+ my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_;
my ($command, $subjects_raw) = ($rest =~ /^(.+)\s+(\[.*\])$/);
return "Syntax: map command [item1, item2, ...]" unless $command and $subjects_raw;
@@ -27,7 +27,7 @@ sub map {
my ($e, @subjects) = ListParser::parse_list($subjects_raw);
return $e if $e;
- my @results = map { $run_command->("$command $_", $who, $where) } @subjects;
+ my @results = map { $run_command->("$command $_", $who, $where, $ided) } @subjects;
return "[" . (join ", ", @results). "]";
}
1;