I have a bot that goes to more than 1 channel and I am logging all methods through PHP but there is no channel arguement for QUIT/NICKCHANGE is there a way to figure out which channel the person was in? I have var_dump'd both $irc and $data but there is nothing that looks to be of any use...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yes this is a problem, but this channel info is _not_ in the IRC message, the reason is that QUIT and NICKCHANGE are GLOBAL for all channels on that irc server/network. I would sugguest you to search for the user in the $irc->channel[] array, internaly in SmartIRC I do the same, on a QUIT, I search on all channels for that user and destroy him there. I know it's not a nice solution but there is no other way, because the IRC protocol works this way...
I hope this helps...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a bot that goes to more than 1 channel and I am logging all methods through PHP but there is no channel arguement for QUIT/NICKCHANGE is there a way to figure out which channel the person was in? I have var_dump'd both $irc and $data but there is nothing that looks to be of any use...
yes this is a problem, but this channel info is _not_ in the IRC message, the reason is that QUIT and NICKCHANGE are GLOBAL for all channels on that irc server/network. I would sugguest you to search for the user in the $irc->channel[] array, internaly in SmartIRC I do the same, on a QUIT, I search on all channels for that user and destroy him there. I know it's not a nice solution but there is no other way, because the IRC protocol works this way...
I hope this helps...