… | |
… | |
6 | |
6 | |
7 | # requires: commands.ext |
7 | # requires: commands.ext |
8 | |
8 | |
9 | return unless exists $cf::CFG{irc_server}; |
9 | return unless exists $cf::CFG{irc_server}; |
10 | |
10 | |
11 | our $BOTSERVER = $cf::CFG{irc_server}; |
11 | CONF BOTSERVER : irc_server = undef; |
12 | our $BOTPORT = $cf::CFG{irc_port}; |
12 | CONF BOTPORT : irc_port = undef; |
13 | our $BOTNAME = $cf::CFG{irc_nick}; |
13 | CONF BOTNAME : irc_nick = undef; |
14 | our $BOTCHAN = $cf::CFG{irc_chan}; |
14 | CONF BOTCHAN : irc_chan = undef; |
15 | |
15 | |
16 | our $CON; # the connection |
16 | our $CON; # the connection |
17 | |
17 | |
18 | sub unload { |
18 | sub unload { |
19 | $CON->disconnect if $CON; |
19 | $CON->disconnect if $CON; |