added per user / per channel stats
[PHP-P10.git] / Uplink / P10_User.class.php
index 8d4e5a35ffa2381679cecb64d0a8f8f8e87f4060..bcc17c2d7ede8169899e411854152c41486d2005 100644 (file)
@@ -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);
        }