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) {
return $this->channels;
}
+ public function getChannelCount() {
+ return count($this->channels);
+ }
+
public function isOnChannel($channel) {
return array_key_exists(strtolower($channel->getName()),$this->channels);
}