simonbell wrote:ok thanks, ive got that working, now is it possible to pass the information given back to the msg_userinfo proc so i can give a reply via notice to the nick of the person who made the request?
thx
Simon
Now, this is the tricky part: the bot receives a reply to an ISON request, but it doesn't know which nick requested that info. A straightforward solution is to append the nick of the requester in a global list. Upon receiving the RAW 303, pick the first element (nick) in the global list and send the RAW 303 to that nick. Then remove that first element from the list. (Note that it is possible to have multiple ISON requests pending. It is assumed here that the RAW 303 are received in the same chronological order the ISON requests were sent out).
A bit smarter solution is as follows: ISON allows multiple nicks. So, you can send out an "ISON $nick $nick_requested" i.e. you always make the first nick after ISON, the nick of the requester. This nick is on IRC for sure, so the first element in the reply always is the nick of the requester.
Then what you do is strip the nick of the requester from the server response, review if there is anything left in the response and send it back to the requester. Perform these actions in your "rawnickinfo" procedure.
Passing back information to msg_userinfo will not work.
Additionally, it is a bit cumbersome too explain here what to do if the requester changes its nick in between the ISON request and the asynchronous RAW 303 server reply. Especially if that nick was not on any of the channels the bot is monitoring.
