for my $chan (split( /,/, $self->{ "channel" } )) {
my @args = split( /:/, $chan );
my $chanName = shift @args;
- $_[KERNEL]->post( $heap->{ 'ircobject' }->session_id(), "join", $chan, @args );
+ print( "IRC : Connecting to $chanName" );
+ if( $#args >= 0 ) {
+ print( " with arguments ".join( ',', @args ), "\n" );
+ $_[KERNEL]->post( $heap->{ 'ircobject' }->session_id(), "join", $chanName, @args );
+ } else {
+ print( "\n" );
+ $_[KERNEL]->post( $heap->{ 'ircobject' }->session_id(), "join", $chanName );
+ }
}
}