Skip to content

Commit

Permalink
match freenode subdomains when checking irc link
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Oct 2, 2014
1 parent 8a18a8c commit ef5d02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Role/ReleaseInfo.pm
Expand Up @@ -169,7 +169,7 @@ sub groom_irc {
$channel =~ s/^(?![#~!+])/#/;
$channel = uri_escape($channel);

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

0 comments on commit ef5d02b

Please sign in to comment.