diff options
author | Eric Wong <e@80x24.org> | 2015-09-20 09:33:45 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-20 09:33:45 +0000 |
commit | 2409d31225754eb27f2bea9cc4dc91d73f48fbc8 (patch) | |
tree | 147bd198833b401f6aa68c9be2582cfe4b2546d9 /lib/PublicInbox | |
parent | ebb1ae89f3b4a52daaf581e727c0dcbe6b7c103e (diff) | |
download | public-inbox-2409d31225754eb27f2bea9cc4dc91d73f48fbc8.tar.gz |
public-inboxen may be aliased to multiple email addresses, and we have always favored the first.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/NewsGroup.pm | 1 |
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; |