projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added recv_whois
[PHP-P10.git]
/
Uplink
/
P10_User.class.php
diff --git
a/Uplink/P10_User.class.php
b/Uplink/P10_User.class.php
index 83169bfe4ada43fa419ec21df9d51a8cdc92e0dc..cd3a485d51a0426da735778705c985cd46bdb9c0 100644
(file)
--- a/
Uplink/P10_User.class.php
+++ b/
Uplink/P10_User.class.php
@@
-39,8
+39,8
@@
class P10_User {
private static $static_users = array();
public static function getUserByNum($numeric) {
private static $static_users = array();
public static function getUserByNum($numeric) {
- if(array_key_exists($numeric, self::$static_
serv
ers)) {
- return self::$static_
serv
ers[$numeric];
+ if(array_key_exists($numeric, self::$static_
us
ers)) {
+ return self::$static_
us
ers[$numeric];
}
return NULL;
}
}
return NULL;
}
@@
-57,6
+57,7
@@
class P10_User {
private $numeric;
private $numeric;
+ private $server;
private $nick;
private $ident;
private $host;
private $nick;
private $ident;
private $host;
@@
-84,6
+85,10
@@
class P10_User {
return $this->numeric;
}
return $this->numeric;
}
+ public function getServer() {
+ return $this->server;
+ }
+
public function setNick($nick) {
$this->nick = $nick;
}
public function setNick($nick) {
$this->nick = $nick;
}
@@
-138,6
+143,14
@@
class P10_User {
trigger_error("Tried to remove a Channel, that does NOT exist.", E_USER_WARNING);
}
}
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
}
?>
\ No newline at end of file