projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc46256
)
Added method getAuthNick() to class P10_User
author
NurPech
<NurPech@webgamesnet.net>
Sat, 21 Apr 2012 12:22:35 +0000
(14:22 +0200)
committer
pk910
<philipp@zoelle1.de>
Sun, 29 Apr 2012 12:35:10 +0000
(14:35 +0200)
Uplink/P10_User.class.php
patch
|
blob
|
history
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 getAuthNick() {
+ $authData = $this->getModes()->hasMode('r');
+ $authnick = false;
+ if($authData) {
+ $authData = explode(':', $authData);
+ $authnick = $authData[0];
+ }
+
+ return $authnick;
+ }
}
?>
\ No newline at end of file