From 29c9dfc2f073856d051daf900c1d7818dde648fe Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 27 Jul 2011 13:11:23 +0200 Subject: [PATCH] added Bot class (simple method dummy) & fixed some bugs --- BotLoader/Bot.class.php | 45 +++++++++++++++++++++++++++++++++++++++++ Uplink/Uplink.class.php | 4 ++-- main.php | 1 + 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 BotLoader/Bot.class.php diff --git a/BotLoader/Bot.class.php b/BotLoader/Bot.class.php new file mode 100644 index 0000000..21641c7 --- /dev/null +++ b/BotLoader/Bot.class.php @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index 037d463..524d392 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -330,7 +330,7 @@ class Uplink { $this->server->addServer($new_server); $this->flags |= self::FLAG_P10SESSION | self::FLAG_BURST_PENDING; if($this->eventHandler) - $this->eventHandler->event_server($new_server, !($this->flags & self::FLAG_CONNECTED)); + $this->eventHandler->event_newserver($new_server, !($this->flags & self::FLAG_CONNECTED)); } else { //another server got a new slave server ^^ $server = P10_Server::getServerByNum($from); @@ -341,7 +341,7 @@ class Uplink { $new_server = new P10_Server($args[0], substr($args[5],0,2), $server, $args[2], $args[3], $args[7]); $server->addServer($new_server); if($this->eventHandler) - $this->eventHandler->event_server($new_server, !($this->flags & self::FLAG_CONNECTED)); + $this->eventHandler->event_newserver($new_server, !($this->flags & self::FLAG_CONNECTED)); } } diff --git a/main.php b/main.php index 95e82b2..5dcf7d9 100644 --- a/main.php +++ b/main.php @@ -26,6 +26,7 @@ * */ require_once("Uplink/Uplink.class.php"); +require_once("ModCMD/ModCMD.class.php"); //basicly here is nothing, yet :D $uplink = new Uplink(); -- 2.20.1