From: Anti V. <du...@us...> - 2004-11-10 21:55:03
|
Update of /cvsroot/tuxaator/tuxaator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9161 Modified Files: tuxaator Log Message: + do not require File::Glob anymore + logging is now optional and depends on whether logfile is set in config file Index: tuxaator =================================================================== RCS file: /cvsroot/tuxaator/tuxaator/tuxaator,v retrieving revision 1.88 retrieving revision 1.89 diff -C2 -d -r1.88 -r1.89 *** tuxaator 9 Nov 2004 23:46:15 -0000 1.88 --- tuxaator 10 Nov 2004 21:54:53 -0000 1.89 *************** *** 13,17 **** use BotCore; #use Tuxaator::Plugin; - use File::Glob ':glob'; my ($irc,$whoami,$driver,$dbh,%last,%plugins,%msg_handlers,$DEBUG); my $Output; --- 13,16 ---- *************** *** 22,26 **** my $basedir = $ENV{'PWD'}; - my $lk = 0; my %timers; --- 21,24 ---- *************** *** 185,189 **** or die "Can't connect to IRC server.\n"; $Output = new Plugins::Output($conn); ! $Log = new Plugins::Log($basedir . "/log"); #$Plugin = new Tuxaator::Plugin($conn,$config); --- 183,190 ---- or die "Can't connect to IRC server.\n"; $Output = new Plugins::Output($conn); ! if ($config{'logfile'}) ! { ! $Log = new Plugins::Log($basedir . "/log"); ! }; #$Plugin = new Tuxaator::Plugin($conn,$config); *************** *** 310,314 **** printf "%02d:%02d <%s> %s\n",$hour,$min,$event->nick,$arg; $Core->{'userlist'}->{$event->nick}->{'lastmsg'} = $arg; ! $Log->_log($event->nick,$arg); my @params; my $command; --- 311,318 ---- printf "%02d:%02d <%s> %s\n",$hour,$min,$event->nick,$arg; $Core->{'userlist'}->{$event->nick}->{'lastmsg'} = $arg; ! if ($config{'logfile'}) ! { ! $Log->_log($event->nick,$arg); ! }; my @params; my $command; |