$botloader->loadBots();
BotLoader::load("ModManager", "ModManager.class.php");
-function shutdown($signal) {
+function shutdown($signal = 0) {
global $botloader;
global $uplink;
- if($signal == SIGINT) $type="SIGINT";
- else if($signal == SIGTERM) $type="SIGTERM";
- else $type = $signal;
- echo "\n\nrecived shutdown instruction... ".$type."\n";
+ echo "\n\nrecived shutdown instruction...\n";
$botloader->unloadBots();
$botloader->save();
$uplink->shutdown();