projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added HALFOP (+h, %) support and Binding filters
[PHP-P10.git]
/
Uplink
/
P10_Channel.class.php
diff --git
a/Uplink/P10_Channel.class.php
b/Uplink/P10_Channel.class.php
index 4fe3a205ae27552f402a1d6e735e675d4f66d983..e58882a7b8b2695508105c1cd06a7388381b79a2 100644
(file)
--- a/
Uplink/P10_Channel.class.php
+++ b/
Uplink/P10_Channel.class.php
@@
-54,7
+54,8
@@
class P10_Channel {
private $create_time;
private $users = array();
const USERPRIV_OPED = 0x0001;
private $create_time;
private $users = array();
const USERPRIV_OPED = 0x0001;
- const USERPRIV_VOICE = 0x0002;
+ const USERPRIV_HALFOP = 0x0002;
+ const USERPRIV_VOICE = 0x0004;
private $userPrivs = array();
public function __construct($name) {
private $userPrivs = array();
public function __construct($name) {
@@
-94,9
+95,9
@@
class P10_Channel {
$user->addChannel($this);
}
$user->addChannel($this);
}
- public function burstUser($user, $opped, $voiced) {
+ public function burstUser($user, $opped, $
halfopped, $
voiced) {
$this->users[$user->getNumeric()] = $user;
$this->users[$user->getNumeric()] = $user;
- $this->userPrivs[$user->getNumeric()] = ($opped ? self::USERPRIV_OPED : 0) | ($voiced ? self::USERPRIV_VOICE : 0);
+ $this->userPrivs[$user->getNumeric()] = ($opped ? self::USERPRIV_OPED : 0) | ($
halfopped ? self::USERPRIV_HALFOP : 0) | ($
voiced ? self::USERPRIV_VOICE : 0);
$user->addChannel($this);
}
$user->addChannel($this);
}