aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Map.pm
diff options
context:
space:
mode:
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;