Do you have plan for implementing SQUERY next to the already existing ones, like QUERY, NOTICE, CHANNEL? It would be interesting to get infos from services.
Thanks
Bob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
AFAIK it is very similair to the PRIVMSG, but you can send it to services. I don't know the exact syntax, but maybe this will help, this is from the IRC RFC.
"The SQUERY command is used similarly to PRIVMSG. The only difference is that the recipient MUST be a service. This is the only way for a text message to be delivered to a service.
Examples:
SQUERY irchelp :HELP privmsg
; Message to the service with nickname irchelp.
SQUERY dict@irc.fr :fr2en blaireau
; Message to the service with name dict@irc.fr.
"
Unfortunately I don't know how to get raw messages from IRC. I'm using IRCNet, and Alis service with the following command:
/squery alis list * -t .de
Hope this helped. If not, I will ask somebody to get this information for you.
Bob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
simple to get the raw line, use SmartIRC ;)
$irc->setDebug(SMARTIRC_DEBUG_IRCMESSAGES);
then send a SQUERY manually with:
$irc->_send('SQUERY alis: HELP');
and gimme the reply from the logfile...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
Do you have plan for implementing SQUERY next to the already existing ones, like QUERY, NOTICE, CHANNEL? It would be interesting to get infos from services.
Thanks
Bob
if you give me one raw message of a SQUERY then I will add it to the CVS version after I got the line ;)
AFAIK it is very similair to the PRIVMSG, but you can send it to services. I don't know the exact syntax, but maybe this will help, this is from the IRC RFC.
"The SQUERY command is used similarly to PRIVMSG. The only difference is that the recipient MUST be a service. This is the only way for a text message to be delivered to a service.
Examples:
SQUERY irchelp :HELP privmsg
; Message to the service with nickname irchelp.
SQUERY dict@irc.fr :fr2en blaireau
; Message to the service with name dict@irc.fr.
"
Unfortunately I don't know how to get raw messages from IRC. I'm using IRCNet, and Alis service with the following command:
/squery alis list * -t .de
Hope this helped. If not, I will ask somebody to get this information for you.
Bob
simple to get the raw line, use SmartIRC ;)
$irc->setDebug(SMARTIRC_DEBUG_IRCMESSAGES);
then send a SQUERY manually with:
$irc->_send('SQUERY alis: HELP');
and gimme the reply from the logfile...
Sep 15 22:50:01 SmartIRC.php(1496) DEBUG_IRCMESSAGES: sent: "SQUERY alis HELP"
Without the : sign.
And the reply looks like notices:
Sep 15 22:50:03 SmartIRC.php(1569) DEBUG_IRCMESSAGES: received: ":Alis@ircnet.wanadoo.be NOTICE ax9ULH4Lg :Alis help index"
Sep 15 22:50:03 SmartIRC.php(1569) DEBUG_IRCMESSAGES: received: ":Alis@ircnet.wanadoo.be NOTICE ax9ULH4Lg :Use /SQUERY Alis HELP <topic>"
Sep 15 22:50:03 SmartIRC.php(1569) DEBUG_IRCMESSAGES: received: ":Alis@ircnet.wanadoo.be NOTICE ax9ULH4Lg :Available topics: ADMIN, DIE, HASH, INFO, LIST, STATUS, VERSION"
Sep 15 22:50:03 SmartIRC.php(1569) DEBUG_IRCMESSAGES: received: ":Alis@ircnet.wanadoo.be NOTICE ax9ULH4Lg :For LIST examples use /SQUERY Alis HELP EXAMPLES"