projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed Client.class.php (block timeouts) and some other bugs
[PHP-P10.git]
/
BotLoader
/
BotLoader.class.php
diff --git
a/BotLoader/BotLoader.class.php
b/BotLoader/BotLoader.class.php
index 0201e4c7f006199488b621ffc3b1b9b6278aae40..9fd0f70bf8599409d6b14142bc812c1e6a0d5cb8 100644
(file)
--- a/
BotLoader/BotLoader.class.php
+++ b/
BotLoader/BotLoader.class.php
@@
-95,6
+95,7
@@
class BotLoader {
if(!array_key_exists($name, $this->botdb["bots"])) {
$this->botdb["bots"][$name] = $botfile;
}
if(!array_key_exists($name, $this->botdb["bots"])) {
$this->botdb["bots"][$name] = $botfile;
}
+ return true;
}
private function unloadBot($name, $delete = 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]);
}
if(array_key_exists($name, $this->botdb["bots"]) && $delete) {
unset($this->botdb["bots"][$name]);
}
+ return true;
}
private function rehashBot($name) {
}
private function rehashBot($name) {
@@
-139,6
+141,7
@@
class BotLoader {
if(!$bot) return false;
$bot->load($this->uplink, $data);
$this->loadedBots[strtolower($name)] = $bot;
if(!$bot) return false;
$bot->load($this->uplink, $data);
$this->loadedBots[strtolower($name)] = $bot;
+ return true;
}
private function listLoadedBots() {
}
private function listLoadedBots() {