Skip to content

Commit

Permalink
also check freenode.com and freenode.org when generating irc links
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Aug 16, 2017
1 parent 0eb052e commit 328217f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Model/ReleaseInfo.pm
Expand Up @@ -192,7 +192,7 @@ sub groom_irc {
$channel =~ s/^(?![#~!+])/#/;
$channel = uri_escape($channel);

if ( $host =~ /(?:^|\.)freenode\.net$/ ) {
if ( $host =~ /(?:^|\.)freenode\.(?:com|org|net)$/ ) {
$irc_info->{web}
= "https://webchat.freenode.net/?randomnick=1&prompt=1&channels=${channel}";
}
Expand Down

0 comments on commit 328217f

Please sign in to comment.