ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/schmorp-irc.ext
(Generate patch)

Comparing deliantra/maps/perl/schmorp-irc.ext (file contents):
Revision 1.3 by elmex, Thu Aug 3 11:15:49 2006 UTC vs.
Revision 1.4 by root, Thu Aug 3 11:23:58 2006 UTC

1#! perl 1#! perl
2
2use Time::HiRes; 3use Time::HiRes;
3use Net::IRC3::Client::Connection; 4use Net::IRC3::Client::Connection;
4 5
5my $BOTSERVER = 'irc.plan9.de'; 6my $BOTSERVER = 'irc.plan9.de';
6my $BOTPORT = '6667'; 7my $BOTPORT = '6667';
19 $CON->send_chan ($BOTCHAN, NOTICE => $msg, $BOTCHAN); 20 $CON->send_chan ($BOTCHAN, NOTICE => $msg, $BOTCHAN);
20} 21}
21 22
22sub check_connection { 23sub check_connection {
23 return if $CON; 24 return if $CON;
25
24 $CON = Net::IRC3::Client::Connection->new; 26 $CON = Net::IRC3::Client::Connection->new;
25 $CON->connect ($BOTSERVER, $BOTPORT); 27 $CON->connect ($BOTSERVER, $BOTPORT);
26 $CON->send_srv (JOIN => undef, $BOTCHAN); 28 $CON->send_srv (JOIN => undef, $BOTCHAN);
27 $CON->register ($BOTNAME, $BOTNAME, 'crossfire connection'); 29 $CON->register ($BOTNAME, $BOTNAME, 'crossfire connection');
28 $CON->reg_cb ( 30 $CON->reg_cb (

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines