- $name = null;
- foreach($this->loadedBots as $botname => $cbot) {
- if($cbot === $bot) {
- $name = $botname;
- break;
- }
- }
- if($name == null) return false;
- if(array_key_exists(strtolower($name), $this->botDatabases)) {
- return false;
- }
- $this->botDatabases[strtolower($name)] = $section;