Menu

status indicator

Help
2003-05-21
2003-05-21
  • Nobody/Anonymous

    i am trying to code a status indicator ,

    mostly (online/offline thing) based on a reply of the irc server from the /whois command

    but i am completly lost in the API

    could someone give me a hint?

     
    • Nobody/Anonymous

      Hi!

      Here is a little help for you:

      // Get whois
      $irc->whois($nick);
      $stuff = $irc->listenFor(SMARTIRC_TYPE_WHOIS);

      Now $stuff will contain the result of whois. So it will be either a valid whois, or a nick: No such nick/channel reply. You can sort it out and display the result on your webpage.

          Horcsog

       

Log in to post a comment.