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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
Excellent, that works a treat. Thanks for your help!