added bind and unbind functions & added the simple ExampleBot. (doesn't run right...
[PHP-P10.git] / Uplink / Uplink.class.php
index 7f0e0af661225ec233468b11bf35f8b4f0c0e0cd..037d4633170c904026ee89f5f144e87294f52c94 100644 (file)
@@ -605,10 +605,10 @@ class Uplink {
                                        $cmodes = $channel->getModes();
                                        $privs = $channel->getUserPrivs($user);
                                        if($cmodes->hasMode("s") && !$fromUser->isOnChannel($channel) && $from != $user->getNumeric()) continue;
-                                       if($cmodes->hasMode("u") && ($privs & (P10_Channel::USERPRIV_OPPED | P10_Channel::USERPRIV_VOICE)) == 0 && $from != $user->getNumeric()) continue;
+                                       if($cmodes->hasMode("u") && ($privs & (P10_Channel::USERPRIV_OPED | P10_Channel::USERPRIV_VOICE)) == 0 && $from != $user->getNumeric()) continue;
                                        $chanstr = ($channels == "" ? "" : " ");
                                        $prefix = "";
-                                       if(($privs & P10_Channel::USERPRIV_OPPED)) {
+                                       if(($privs & P10_Channel::USERPRIV_OPED)) {
                                                $prefix = "@";
                                        } else if(($privs & P10_Channel::USERPRIV_VOICE)) {
                                                $prefix = "+";