X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ModCMD%2FModCMD.class.php;fp=ModCMD%2FModCMD.class.php;h=cbd65111e94435b233c5428e6e738a1bbf9b819c;hb=a53ed534c0e521ae169634f38f391b5bf7ca21b3;hp=0000000000000000000000000000000000000000;hpb=b692377ffd5176e4be4394997c149773eb9405f7;p=PHP-P10.git diff --git a/ModCMD/ModCMD.class.php b/ModCMD/ModCMD.class.php new file mode 100644 index 0000000..cbd6511 --- /dev/null +++ b/ModCMD/ModCMD.class.php @@ -0,0 +1,159 @@ +trigger(); + } + } + } + + public function event_newserver($server, $isBurst) { + $this->event(self::EVENT_NEWSERVER, array($server, $isBurst)); + } + + public function event_squit($server){ + $this->event(self::EVENT_SQUIT, array($server)); + } + + public function event_connect($user, $isBurst) { + $this->event(self::EVENT_CONNECT, array($user, $isBurst)); + } + + public function event_nick($user, $newNick) { + $this->event(self::EVENT_NICK, array($user, $newNick)); + } + + public function event_usermode($user, $modes) { + $this->event(self::EVENT_USERMODE, array($user, $modes)); + } + + public function event_quit($user, $reason) { + $this->event(self::EVENT_QUIT, array($user, $reason)); + } + + public function event_join($user, $channel, $isBurst) { + $this->event(self::EVENT_JOIN, array($user, $channel, $isBurst)); + } + + public function event_part($user, $channel, $reason) { + $this->event(self::EVENT_PART, array($user, $channel, $reason)); + } + + public function event_kick($user, $target, $channel, $reason) { + $this->event(self::EVENT_KICK, array($user, $target, $channel, $reason)); + } + + public function event_chanmode($user, $channel, $modes) { + $this->event(self::EVENT_CHANMODE, array($user, $channel, $modes)); + } + + public function event_chanmessage($user, $channel, $message) { + $this->event(self::EVENT_CHANMSG, array($user, $channel, $message)); + } + + public function event_channotice($user, $channel, $message) { + $this->event(self::EVENT_CHANNOTICE, array($user, $channel, $message)); + } + + public function event_privmessage($user, $channel, $message) { + $this->event(self::EVENT_PRIVMSG, array($user, $channel, $message)); + } + + public function event_privnotice($user, $channel, $message) { + $this->event(self::EVENT_PRIVNOTICE, array($user, $channel, $message)); + } + + public function event_preparse($from, $command, $arguments) { + $this->event(self::EVENT_PREPARSE, array($from, $command, $arguments)); + } + + public function event_unknown_cmd($from, $command, $arguments) { + $this->event(self::EVENT_UNKNOWNCMD, array($from, $command, $arguments)); + } + +} + +?> \ No newline at end of file