sub {
my( $kernel, $heap, $who, $what, $src, $dest, $replypath ) = @_;
if( $what =~ /^[#&][^ ,]+$/ ) {
- $kernel->post( "mod_irc", "do_join", $what );
+ $kernel->post( $src, "do_join", $what );
$kernel->post( $src, $replypath, "Okay.", $dest );
} else {
$kernel->post( $src, $replypath, "'$what' is not a valid channel name.", $dest );
sub {
my( $kernel, $heap, $who, $what, $src, $dest, $replypath ) = @_;
if( $what =~ /^[#&][^ ,]+$/ ) {
- $kernel->post( "mod_irc", "do_part", $what );
+ $kernel->post( $src, "do_part", $what );
$kernel->post( $src, $replypath, "Okay.", $dest );
} else {
$kernel->post( $src, $replypath, "'$what' is not a valid channel name.", $dest );