… | |
… | |
3 | use Time::HiRes; |
3 | use Time::HiRes; |
4 | use Net::IRC3::Client::Connection; |
4 | use Net::IRC3::Client::Connection; |
5 | |
5 | |
6 | # requires: commands.ext |
6 | # requires: commands.ext |
7 | |
7 | |
8 | my $BOTSERVER = 'localhost'; |
8 | return unless $cf::CFG{irc_server}; |
9 | my $BOTPORT = '6667'; |
9 | |
10 | my $BOTNAME = 'cfbot'; |
10 | my $BOTSERVER = $cf::CFG{irc_server}; |
11 | my $BOTCHAN = '#cf'; |
11 | my $BOTPORT = $cf::CFG{irc_port}; |
|
|
12 | my $BOTNAME = $cf::CFG{irc_nick}; |
|
|
13 | my $BOTCHAN = $cf::CFG{irc_chan}; |
12 | |
14 | |
13 | my $CON; # the connection |
15 | my $CON; # the connection |
14 | |
16 | |
15 | sub unload { |
17 | sub unload { |
16 | $CON->disconnect if $CON; |
18 | $CON->disconnect if $CON; |