X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Uplink%2FP10_Channel.class.php;fp=Uplink%2FP10_Channel.class.php;h=e58882a7b8b2695508105c1cd06a7388381b79a2;hp=4fe3a205ae27552f402a1d6e735e675d4f66d983;hb=2e900783aa961dd56ec4733231656fd8928aaa55;hpb=e4b8ef21756e63577c17f9e76d812c9a5a7f0bdc diff --git a/Uplink/P10_Channel.class.php b/Uplink/P10_Channel.class.php index 4fe3a20..e58882a 100644 --- 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; - const USERPRIV_VOICE = 0x0002; + const USERPRIV_HALFOP = 0x0002; + const USERPRIV_VOICE = 0x0004; private $userPrivs = array(); public function __construct($name) { @@ -94,9 +95,9 @@ class P10_Channel { $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); }