Menu

PRIVMSG?

Help
2003-03-20
2003-03-21
  • Nobody/Anonymous

    Hi,

    I'm new to this, so sorry if I've missed something obvious.

    I'd like to be able to send and respond using PRIVMSG (although maybe I should respond using NOTICE to avoid loops?).  There doesn't seem to be a message type defined, so how can I handle a received PRIVMSG?

    Many thanks,
    Jon

     
    • Nobody/Anonymous

      I think SMARTIRC_TYPE_QUERY is what you need. The name is like query, but in the code you can find the following:
      case SMARTIRC_TYPE_QUERY:
      $this->_send('PRIVMSG '.$destination.' :'.$message);

      so it is a privmsg.

       
    • Nobody/Anonymous

      Excellent, that works a treat.  Thanks for your help!

       

Log in to post a comment.