X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=Bots%2FModManager.class.php;h=a83e0a8b1e2ac2837e7e8bac9322ef832c3302b7;hb=f1a1066826a5cc04606cc12f0bd0b8e0383ca190;hp=4eac48c06bbd78ba379e40b624f3a0b773ff86f9;hpb=74fcc85514c9bd0a4a8dfbd909d9555a9f1ee5b8;p=PHP-P10.git diff --git a/Bots/ModManager.class.php b/Bots/ModManager.class.php index 4eac48c..a83e0a8 100644 --- a/Bots/ModManager.class.php +++ b/Bots/ModManager.class.php @@ -48,7 +48,7 @@ class {$_NAME} extends Bot { $this->modman = $old; } - ModCMD::bind($this, BIND_PRIVMSG, "recive_privmsg"); + ModCMD::bind($this, BIND_CHANMSG, "recive_privmsg"); ModCMD::bind($this, BIND_QUIT, "recive_quit"); } @@ -85,6 +85,11 @@ class {$_NAME} extends Bot { $this->uplink->privmsg($this->modman, $channel, "error."); } break; + case "~list": + foreach(BotLoader::listBots() as $name => $bot) { + $this->uplink->privmsg($this->modman, $channel, $name); + } + break; case "~debug": $exp=explode(" ",$message,2); ob_start();