it seems that $host can't be "::0"... i'll check this later
[PHP-P10.git] / Uplink / Uplink.class.php
index 9d88ae523af513b05e5dd9b2223c2d1a0324767d..a5cc2eb74e710831bd2cc1d0d6e8a59cca400d11 100644 (file)
@@ -407,6 +407,10 @@ class Uplink {
        private function recv_burst($from, $args) {
                $name = $args[0];
                $create_time = $args[1];
+        if(count($args) == 2) {
+            //we've got an empty channel without any modes set???  dead channel!
+            return;
+        }
                $channel = P10_Channel::getChannelByName($name);
                if($channel == null)
                        $channel = new P10_Channel($name);
@@ -984,7 +988,13 @@ class Uplink {
                }
        }
        
+       public function ctcp($user, $target, $command, $text) {
+               return $this->privmsg($user, $target, "\001".strtoupper($command)." ".$text."\001");
+       }
        
+       public function ctcp_reply($user, $target, $command, $text) {
+               return $this->notice($user, $target, "\001".strtoupper($command)." ".$text."\001");
+       }
        
 }