Menu

Whois'ing a user

Help
Anonymous
2003-11-28
2013-04-09
  • Anonymous

    Anonymous - 2003-11-28

    Hey, first thing, great work.

    Next, Hate asking questions, so checked through others for the solution, but found nothing.
    I have tried my best to get a reply to a whois, because I want this to whois someone on join, and put Raw 330 (Q Auth) into a variable so I can query a database, but I just can't get the whois to return. I have added 330 into defines.php, and extension into smartirc.php.

     
    • Mirco Bauer

      Mirco Bauer - 2003-11-30

      whois is included in SMARTIRC_TYPE_WHO, so an actionhandler with that type should work, I dont know anything about that 330 though, probably some violating RFC stuff...
      if you want you can hack it into SmartIRC, first make a RPL_ entry for that in defines.php, then create a mapping in SmartIRC.php in the _gettype() function, in the switch() make a new case for your new RPL_ type and return SMARTIRC_TYPE_WHO. Now in SMARTIRC_TYPE_WHO actionhandlers will be your 330 message.
      If this didn't work tell, but I bet it does. Have fun hacking ;)

       
    • Anonymous

      Anonymous - 2003-11-30

      Hey, thanks for the reply, I managed to get it to return something, but not as I expected, it would only return:

      is authed as

      Raw 330 is an RFC that Quakenet implemented to give a whois'er information on who they are auth'd as, in co-operation with their Q/L Bot's. Information about it is http://script.quakenet.org/index.php?p=raws&a=330 .
      It won't return the nick and auth, just anything after the : .

      So any suggestions about fixing this?

      Thanks in advance

       
      • Mirco Bauer

        Mirco Bauer - 2003-11-30

        if you want the whole message than just use $data->rawmessage instead of $irc->message ;)

         
        • Anonymous

          Anonymous - 2003-11-30

          Aha, works now, time to continue working on it, cheers m8, owe you one!! Bet i'll run into another prob ;)

           
    • mix

      mix - 2004-10-22

      can u please post what u have changed?

       

Log in to post a comment.