All pastes #416877 Raw Edit

Someone

public text v1 · immutable
#416877 ·published 2007-03-30 15:31 UTC
rendered paste body
my $conn = $irc->newconn(Server =>  $server,Port =>  $port,Nick =>  $nick,Ircname =>  $realname,Username => $username);
$conn->{channel} = $channel;
$conn->add_handler('376', \&on_connect);
sub on_connect {
	my $conn = shift;
	$conn->join($conn->{channel});
	$conn->privmsg($conn->{channel}, "0,1test0r v0.1 loaded. Running on $os. My admin is @admins");
	$conn->privmsg($conn->{channel}, "Safe mode: ON and testing.");	
	$conn->{connected} = 1;
}
sub on_public
{ 
# How can i add a text trigger here? for example !bet 50 red  
}