X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Uplink%2FP10_User.class.php;h=ac235b140800c4d37c0a4d5177dfa1f3a24df966;hp=af22f9d2a334f08e0f71e4ef512280272db05926;hb=61ea565f8e0161c0f0f75aac75682941fc2a3611;hpb=e59e78694524537f0bd03782c777cc097b435e3d diff --git a/Uplink/P10_User.class.php b/Uplink/P10_User.class.php index af22f9d..ac235b1 100644 --- a/Uplink/P10_User.class.php +++ b/Uplink/P10_User.class.php @@ -57,6 +57,7 @@ class P10_User { private $numeric; + private $server; private $nick; private $ident; private $host; @@ -84,6 +85,10 @@ class P10_User { return $this->numeric; } + public function getServer() { + return $this->server; + } + public function setNick($nick) { $this->nick = $nick; } @@ -138,6 +143,10 @@ class P10_User { trigger_error("Tried to remove a Channel, that does NOT exist.", E_USER_WARNING); } } + + public function isOnChannel($channel) { + return array_key_exists(strtolower($channel->getName()),$this->channels); + } } ?> \ No newline at end of file