added per user / per channel stats
[PHP-P10.git] / Uplink / P10_Channel.class.php
index bc8c152f690d086ca9dd36c634643296d14655d8..a0d9fb8aa3550b8bce1d37ce448c33acf4317758 100644 (file)
@@ -114,7 +114,7 @@ class P10_Channel {
        
        private function checkChannel() {
                if(count($this->users) == 0 && !$this->modes->hasMode('z')) {
-                       unset(self::$static_channels[strtolower($name)]); //drop empty channel
+                       unset(self::$static_channels[strtolower($this->name)]); //drop empty channel
                }
        }
        
@@ -153,6 +153,10 @@ class P10_Channel {
                }
        }
        
+       public function getUserCount() {
+               return count($this->users);
+       }
+       
        public function getUsers() {
                return $this->users;
        }