sub do_join {
my( $kernel, $heap, $what ) = @_[ KERNEL, HEAP, ARG0 ];
if( $what =~ /^[#&][^ ,]+$/ ) {
+ print( "IRC : Joining '$what'\n" );
$kernel->post( $heap->{ 'ircobject' }->session_id(), "join", $what );
} else {
warn( "'$what' is an invalid channel name" );
sub do_part {
my( $kernel, $heap, $what ) = @_[ KERNEL, HEAP, ARG0 ];
if( $what =~ /^[#&][^ ,]+$/ ) {
+ print( "IRC : Parting '$what'\n" );
$kernel->post( $heap->{ 'ircobject' }->session_id(), "part", $what );
} else {
warn( "'$what' is an invalid channel name" );