added default CTCP replies
[PHP-P10.git] / Uplink / Uplink.class.php
index 9d88ae523af513b05e5dd9b2223c2d1a0324767d..5e1e1ee827826973ff0db0f7fb8e2a5d5f11dce0 100644 (file)
@@ -984,7 +984,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");
+       }
        
 }