$kernel->alias_set( "core" );
print( "CORE: Started.\n" );
for my $server ( split( / /, $Destult::config{ 'SERVERS' } ) ) {
- $server =~ m'([^:]+)://([^/]+)(/[^/]+)*'i;
- my( $prot, $host, $opts ) = ( $1, $2, $3 );
- print( "Connect to $host over $prot: $opts\n" );
+ $server =~ m'([^:]+)://(.*)'i;
+ my( $prot, $rest ) = ( $1, $2 );
+ my( $host, $opts ) = split( '/', $rest, 2 );
+ print( "CORE: Connect to $host over $prot: $opts\n" );
if( $prot =~ /irc/i ) {
my @opts = split( '/', $opts );
- shift @opts;
push @{ $heap->{ 'servers' } }, irc::new( $host, shift @opts, @opts );
} else {
die( "CORE: Unknown protocol: '$prot'" );