fixed bug in Uplink::kick()
[PHP-P10.git] / Uplink / Uplink.class.php
index 8d0451fb5c27c223288eb252b425399bb186b816..67ea3b1cef2f4d08bd78e8fc18492d6bb200f942 100644 (file)
@@ -949,7 +949,7 @@ class Uplink {
                        $this->eventHandler->event_kick($user, $target, $channel, $reason);
                $channel->partUser($target, $reason);
                if(($this->flags & self::FLAG_CONNECTED))
-                       $this->send("K", $user->getNumeric(), $chanName, $target->getNumeric(), $reason);
+                       $this->send("K", $user->getNumeric(), $channel->getName(), $target->getNumeric(), $reason);
        }
        
        public function privmsg($user, $target, $message) {