--- /dev/null
+<?php
+/********************************* PHP-P10 ******************************
+ * P10 uplink class by pk910 (c)2011 pk910 *
+ ************************************************************************
+ * Version 2 (OOP) *
+ * *
+ * PHP-P10 is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with PHP-P10; if not, write to the Free Software Foundation, *
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
+ * *
+ ************************************************************************
+ *
+ * Uplink/EventHandler.interface.php
+ *
+ * This file contains the Uplink EventHandler interface.
+ *
+ */
+
+interface EventHandler {
+
+ public function event_newserver($server);
+ public function event_squit($server);
+
+ public function event_connect($user, $isBurst);
+ public function event_quit($user, $reason);
+
+ public function event_join($user, $channel, $isBurst);
+ public function event_part($user, $channel, $reason);
+ public function event_kick($user, $target, $channel, $reason);
+ public function event_mode($user, $channel, $modes);
+
+ public function event_chanmessage($user, $channel, $message);
+ public function event_channotice($user, $channel, $message);
+ public function event_privmessage($user, $channel, $message);
+ public function event_privnotice($user, $channel, $message);
+
+}
+
+?>
\ No newline at end of file
*
* void setValidateServer(String $name, String $password)
* sets additional security relevant information about the remote server.
+ *
+ * void setEventHandler(EventHandler $event_handler)
+ * sets the EventHandlder
*/
require_once("Client.class.php");
require_once("Numerics.class.php");
}
private function recv_burst($from, $args) {
- //AK B #aide 1292621006 +tn ALAMH:o
$name = $args[0];
$create_time = $args[1];
$channel = P10_Channel::getChannelByName($name);