fixed Client.class.php (block timeouts) and some other bugs
[PHP-P10.git] / BotLoader / BotLoader.class.php
index 0201e4c7f006199488b621ffc3b1b9b6278aae40..9fd0f70bf8599409d6b14142bc812c1e6a0d5cb8 100644 (file)
@@ -95,6 +95,7 @@ class BotLoader {
                if(!array_key_exists($name, $this->botdb["bots"])) {
                        $this->botdb["bots"][$name] = $botfile;
                }
+               return true;
        }
        
        private function unloadBot($name, $delete = true) {
@@ -112,6 +113,7 @@ class BotLoader {
                if(array_key_exists($name, $this->botdb["bots"]) && $delete) {
                        unset($this->botdb["bots"][$name]);
                }
+               return true;
        }
        
        private function rehashBot($name) {
@@ -139,6 +141,7 @@ class BotLoader {
                if(!$bot) return false;
                $bot->load($this->uplink, $data);
                $this->loadedBots[strtolower($name)] = $bot;
+               return true;
        }
        
        private function listLoadedBots() {