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) {
$user->addChannel($this);
}
- public function burstUser($user, $opped, $voiced) {
+ public function burstUser($user, $opped, $halfopped, $voiced) {
$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);
}