fixed header of IPv6.class.php
[PHP-P10.git] / Bots / ModManager.class.php
index 4eac48c06bbd78ba379e40b624f3a0b773ff86f9..a83e0a8b1e2ac2837e7e8bac9322ef832c3302b7 100644 (file)
@@ -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();