X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Bots%2FModManager.class.php;h=29f33027ce3911cf96feee66ce3114f133e0f2a2;hp=4eac48c06bbd78ba379e40b624f3a0b773ff86f9;hb=0f30e96ae37491aee19e72b89cc54a6798d1f254;hpb=74fcc85514c9bd0a4a8dfbd909d9555a9f1ee5b8 diff --git a/Bots/ModManager.class.php b/Bots/ModManager.class.php index 4eac48c..29f3302 100644 --- a/Bots/ModManager.class.php +++ b/Bots/ModManager.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -48,7 +45,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 +82,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();