private static $static_users = array();
public static function getUserByNum($numeric) {
- if(array_key_exists($numeric, self::$static_servers)) {
- return self::$static_servers[$numeric];
+ if(array_key_exists($numeric, self::$static_users)) {
+ return self::$static_users[$numeric];
}
return NULL;
}
private $numeric;
+ private $server;
private $nick;
private $ident;
private $host;
return $this->numeric;
}
+ public function getServer() {
+ return $this->server;
+ }
+
public function setNick($nick) {
$this->nick = $nick;
}
trigger_error("Tried to remove a Channel, that does NOT exist.", E_USER_WARNING);
}
}
+
+ public function getChannels() {
+ return $this->channels;
+ }
+
+ public function isOnChannel($channel) {
+ return array_key_exists(strtolower($channel->getName()),$this->channels);
+ }
}
?>
\ No newline at end of file