projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added method getAuthNick() to class P10_User
[PHP-P10.git]
/
Uplink
/
P10_User.class.php
diff --git
a/Uplink/P10_User.class.php
b/Uplink/P10_User.class.php
index 4da7c43f29dbaa6d592aaf19d8155244048d5493..651c6ccd4b87139a4c67063ed4a1ac47f5d0d261 100644
(file)
--- a/
Uplink/P10_User.class.php
+++ b/
Uplink/P10_User.class.php
@@
-161,6
+161,17
@@
class P10_User {
public function isOnChannel($channel) {
return array_key_exists(strtolower($channel->getName()),$this->channels);
}
public function isOnChannel($channel) {
return array_key_exists(strtolower($channel->getName()),$this->channels);
}
+
+ public function getAuthNick() {
+ $authData = $this->getModes()->hasMode('r');
+ $authnick = false;
+ if($authData) {
+ $authData = explode(':', $authData);
+ $authnick = $authData[0];
+ }
+
+ return $authnick;
+ }
}
?>
\ No newline at end of file
}
?>
\ No newline at end of file