Menu

QUIT/NICKCHANGE

Help
2003-11-06
2003-11-06
  • Nobody/Anonymous

    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...

     
    • Mirco Bauer

      Mirco Bauer - 2003-11-06

      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...

       

Log in to post a comment.