about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/NewsGroup.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/NewsGroup.pm b/lib/PublicInbox/NewsGroup.pm
index b8aed529..0c7051db 100644
--- a/lib/PublicInbox/NewsGroup.pm
+++ b/lib/PublicInbox/NewsGroup.pm
@@ -13,6 +13,7 @@ sub new {
         my ($class, $name, $git_dir, $address) = @_;
         my $self = fields::new($class);
         $self->{name} = $name;
+        $address = $address->[0] if ref($address);
         $self->{domain} = ($address =~ /\@(\S+)\z/) ? $1 : 'localhost';
         $self->{git_dir} = $git_dir;
         $self->{address} = $address;