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
}
}
}
}
+ public function getUserCount() {
+ return count($this->users);
+ }
+
public function getUsers() {
return $this->users;
}