[SimBot-commits] CVS: simbot/plugins httpd.pl,1.21,1.22 tinyurl.pl,1.10,1.11
Status: Abandoned
Brought to you by:
kstange
|
From: Kevin S. <ks...@us...> - 2005-11-10 13:20:45
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31802/plugins Modified Files: httpd.pl tinyurl.pl Log Message: Get rid of some warn calls and replace them with debug(DEBUG_WARN, blah); I left weather.pl alone in case 404 is planning to make a perl module out of it. :P Index: httpd.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/httpd.pl,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -p -r1.21 -r1.22 --- httpd.pl 10 Nov 2005 13:02:15 -0000 1.21 +++ httpd.pl 10 Nov 2005 13:20:32 -0000 1.22 @@ -186,7 +186,7 @@ sub admin_page { if ( $request->uri =~ m|\?restart$| ) { if ( !defined $kernel ) { - warn "Trying to restart simbot without a kernel"; + &debug(DEBUG_WARN, "Trying to restart simbot without a kernel"); } POE::Kernel->post( 'simbot', 'restart', "web admin" ); $response->code(RC_OK); Index: tinyurl.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/tinyurl.pl,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -p -r1.10 -r1.11 --- tinyurl.pl 10 Nov 2005 13:02:15 -0000 1.10 +++ tinyurl.pl 10 Nov 2005 13:20:32 -0000 1.11 @@ -144,7 +144,7 @@ sub handle_chat { . &shorten_url($to_url)); } else { &debug(3, " failed!\n"); - warn $response->content; + &debug(DEBUG_WARN, $response->content); } } } |