libirc.php
changeset 21 d86ea89358ec
parent 8 0acb8d9a3194
child 30 2cfcd2801e5a
equal deleted inserted replaced
20:e2f6e3af9959 21:d86ea89358ec
   247    */
   247    */
   248   
   248   
   249   private function handle_privmsg($message)
   249   private function handle_privmsg($message)
   250   {
   250   {
   251     $message = self::parse_message($message);
   251     $message = self::parse_message($message);
       
   252     $message['message'] = preg_replace('/^(.+?):/', '', $message['message']);
   252     $ph = $this->privmsg_handler;
   253     $ph = $this->privmsg_handler;
   253     if ( @function_exists($ph) )
   254     if ( @function_exists($ph) )
   254       return @call_user_func($ph, $message);
   255       return @call_user_func($ph, $message);
   255   }
   256   }
   256   
   257