thanks exactly what i need to get started
i dont get this $1 and $2 stuff what does they mean how do i know what they can contain?
sub iranstuff
{
my ( $kernel, $session, $heap, $args ) = @_[ KERNEL, SESSION, HEAP, ARG0 ];
my %args = %{$args};
my $line = $args->{'line'};
if ($line =~ m/^\[IRANSTUFF\](.+)$/)
{
my $msg;
my $prefix;
if ( $1 =~ m/^\[(.+)\](.+)/ ) {$prefix = $1; $msg = $2;}
$prefix = "09[04$prefix09]09 ";
plugin::ircmsg ( $prefix . $msg , "A" );
}
}
ah i got something thats good enough for me thanks alot
[Updated on: Tue, 17 April 2012 08:48]
Report message to a moderator