X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=Uplink%2FP10_User.class.php;h=f18080a576a9fa5e5f58980acb6b1f178eeb4768;hb=c4ba095ecbd63c4152726371a761fe323a967f2f;hp=8d4e5a35ffa2381679cecb64d0a8f8f8e87f4060;hpb=5c6c3365d28144516f0ade183189b256d8de03bc;p=PHP-P10.git diff --git a/Uplink/P10_User.class.php b/Uplink/P10_User.class.php index 8d4e5a3..f18080a 100644 --- a/Uplink/P10_User.class.php +++ b/Uplink/P10_User.class.php @@ -69,7 +69,7 @@ class P10_User { private $connect_time; private $modes; private $realname; - private $channels; + private $channels = array(); private $away = null; public function __construct($nick, $numeric, $server, $connect_time, $ident, $host, $ip, $realname, $modes) { @@ -165,6 +165,10 @@ class P10_User { return $this->channels; } + public function getChannelCount() { + return count($this->channels); + } + public function isOnChannel($channel) { return array_key_exists(strtolower($channel->getName()),$this->channels); }