about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtMsg.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/ExtMsg.pm')
-rw-r--r--lib/PublicInbox/ExtMsg.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index 5dffc65c..929737f1 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -74,8 +74,7 @@ sub search_partial ($$) {
 }
 
 sub ext_msg_i {
-        my ($other, $arg) = @_;
-        my ($cur, $mid, $ibxs, $found) = @$arg;
+        my ($other, $cur, $mid, $ibxs, $found) = @_;
 
         return if $other->{name} eq $cur->{name} || !$other->base_url;
 
@@ -101,9 +100,9 @@ sub ext_msg {
         eval { require PublicInbox::Msgmap };
         my $ibxs = [];
         my $found = [];
-        my $arg = [ $cur, $mid, $ibxs, $found ];
 
-        $ctx->{www}->{pi_config}->each_inbox(\&ext_msg_i, $arg);
+        $ctx->{www}->{pi_config}->each_inbox(\&ext_msg_i,
+                                                $cur, $mid, $ibxs, $found);
 
         return exact($ctx, $found, $mid) if @$found;