URI - Support for irc: scheme?

Posted on Tue Feb 14 13:09:11 2006 by kaicarver
Support for irc: scheme?
Any reason why URI shouldn't support the irc: scheme?

True, irc: doesn't appear to be in the official list of schemes

But... Well, this URI restriction prevents me from adding
irc://irc.mongueurs.net/#perlfr
to http://del.icio.us, which is a pity.
(and it's possibly what prevents me from putting a link to the above IRC URL in this forum message!)

The del.icio.us site returns a somewhat embarrassing page with this error:

System error error: Can't locate object method "host" via package "URI::_foreign" at /www/del.icio.us/comp/pos +ts/add line 93. context: ... 89: my $host; 90: 91: if ($uri->scheme ne 'color') { 92: my $starhost; 93: $host = lc($uri->host); 94: my $hostnowww = $host; $hostnowww =~ s/^www\.//; 95: 96: my @hostparts = reverse split(/\./, $host); 97: if (length($hostparts[0]) > 2) { #.com or whatever ... code stack: /www/del.icio.us/comp/posts/add:93 /www/del.icio.us/site/dhandler:240 /www/del.icio.us/site/autohandler:79

It seems like all that's needed is for the five server methods to be supported.
Write a response