From: pk910 Date: Thu, 28 Jul 2011 04:14:46 +0000 (+0200) Subject: fixed whois X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=3dc7ae00db996ad8ee2e8894de3019d83272156d fixed whois --- diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index 041d1c6..eedc89e 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -640,23 +640,23 @@ class Uplink { if($channels != "") { $this->send("319", $from, $nick, $channels); } - if($fromUser->getModes()->hasMode("o") || $from == $user->getNumeric() || !$this->getSetting("his_name")) { - $this->send("312", $from, $nick, $user->getServer()->getName(), $user->getServer()->getDescription()); - } else { - $this->send("312", $from, $nick, $this->getSetting("his_name"), $this->getSetting("his_desc")); - } - if($modes->hasMode("o") && (!$modes->hasMode("H") || $fromUser->getModes()->hasMode("o"))) { - if($modes->hasMode("S")) { - if($modes->hasMode("D")) - $this->send("313", $from, $nick, "is a Network Service"); - else - $this->send("313", $from, $nick, "is an illegal Network Service - HACKER!"); - } else - $this->send("313", $from, $nick, "is an IRC Operator"); - } - if(($auth = $modes->hasMode("r"))) { - $this->send("330", $from, $nick, $auth); - } + } + if($fromUser->getModes()->hasMode("o") || $from == $user->getNumeric() || !$this->getSetting("his_name")) { + $this->send("312", $from, $nick, $user->getServer()->getName(), $user->getServer()->getDescription()); + } else { + $this->send("312", $from, $nick, $this->getSetting("his_name"), $this->getSetting("his_desc")); + } + if($modes->hasMode("o") && (!$modes->hasMode("H") || $fromUser->getModes()->hasMode("o"))) { + if($modes->hasMode("S")) { + if($modes->hasMode("D")) + $this->send("313", $from, $nick, "is a Network Service"); + else + $this->send("313", $from, $nick, "is an illegal Network Service - HACKER!"); + } else + $this->send("313", $from, $nick, "is an IRC Operator"); + } + if(($auth = $modes->hasMode("r"))) { + $this->send("330", $from, $nick, $auth); } } $this->send("318", $from, $args[1]);