From 9bfe40e7a4ace33fe3bd31e8589703fa5ef53d2a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 May 2016 02:54:09 +0000 Subject: nntp: use "newsgroup" instead of "name" This reduces the cognitive overhead for mapping names of configuration values to internal field names of our classes. Further changes along these lines coming... --- lib/PublicInbox/NewsGroup.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/NewsGroup.pm') diff --git a/lib/PublicInbox/NewsGroup.pm b/lib/PublicInbox/NewsGroup.pm index 98a3595a..500f61e3 100644 --- a/lib/PublicInbox/NewsGroup.pm +++ b/lib/PublicInbox/NewsGroup.pm @@ -13,7 +13,7 @@ require PublicInbox::Search; require PublicInbox::Git; sub new { - my ($class, $name, $git_dir, $address, $url) = @_; + my ($class, $newsgroup, $git_dir, $address, $url) = @_; # first email address is preferred $address = $address->[0] if ref($address); @@ -24,7 +24,7 @@ sub new { $url .= '/' if $url !~ m!/\z!; } my $self = bless { - name => $name, + newsgroup => $newsgroup, git_dir => $git_dir, address => $address, url => $url, -- cgit v1.2.3-24-ge0c7