}
public function save() {
+ $this->saxdb->setSection("BotLoader", $this->botdb);
$this->saxdb->writeDB("php_p10.db");
}
private function rehashBot($name) {
if(!(array_key_exists(strtolower($name), $this->loadedBots))) return false;
+ $botfile = null;
+ foreach($this->botdb["bots"] as $botname => $file) {
+ if(strtolower($botname) == strtolower($name)) {
+ $botfile = $file;
+ break;
+ }
+ }
+ if(!$botfile) break;
//rehash bot
$bot = $this->loadedBots[strtolower($name)];
if(array_key_exists(strtolower($name), $this->botDatabases)) {