added default CTCP replies
[PHP-P10.git] / ModCMD / ModCMD.class.php
index 82ee956c6637dce960e7e784540e357142973ba0..f07e7b044ca44f373873f500939b7db743b22152 100644 (file)
@@ -175,16 +175,16 @@ class ModCMD implements EventHandler {
                $this->event(BIND_CTCP, array($user, $channel, $command, $text, true));
        }
        
-       public function event_chanctcpreply($user, $target, $command, $text) {
+       public function event_chanctcpreply($user, $channel, $command, $text) {
                $this->event(BIND_CTCPREPLY, array($user, $channel, $command, $text, true));
        }
        
        public function event_privctcp($user, $target, $command, $text) {
-               $this->event(BIND_CTCP, array($user, $channel, $command, $text, false));
+               $this->event(BIND_CTCP, array($user, $target, $command, $text, false));
        }
        
        public function event_privctcpreply($user, $target, $command, $text) {
-               $this->event(BIND_CTCPREPLY, array($user, $channel, $command, $text, false));
+               $this->event(BIND_CTCPREPLY, array($user, $target, $command, $text, false));
        }
        
        public function event_away($user, $away) {