[SimBot-commits] CVS: simbot/plugins httpd.pl,1.7,1.8
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-07-28 00:09:59
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21267/plugins Modified Files: httpd.pl Log Message: Closer to getting restart in the admin page working. Index: httpd.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/httpd.pl,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -p -r1.7 -r1.8 --- httpd.pl 27 Jul 2005 22:20:54 -0000 1.7 +++ httpd.pl 28 Jul 2005 00:09:49 -0000 1.8 @@ -120,11 +120,10 @@ sub admin_page { if($request->uri =~ m|\?restart$|) { - &SimBot::debug(3, "Restart requested by web admin\n"); if(!defined $kernel) { warn "Trying to restart simbot without a kernel"; } - &SimBot::restart($kernel); + $kernel->post('simbot', 'restart', "web admin"); return; } elsif(my ($say) = $request->uri =~ m|\?say=(\S+)$|) { $say =~ s/\+/ /g; @@ -168,6 +167,7 @@ sub messup_httpd { sub cleanup_httpd { $kernel->call($aliases->{httpd}, 'shutdown'); + undef $aliases; } &SimBot::plugin_register( |