This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

whois script

Old posts that have not been replied to for several years.
Locked
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

whois script

Post by metroid »

Im working on a whois script but i cant figure out how to do these things :

Account users: ( tells u all the users currently logged in as "person" )
Last seen : ( Tells you when the bot last seen this person )

Those are the two i've been trying to figure out.

If anyone could make those 2 variables, i'd be happy :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

The following may be of some help:

Code: Select all

  getuser <handle> <entry-type> [extra info]
    Description: an interface to the new generic userfile support. Valid
      entry types are:
        BOTFL   - returns the current bot-specific flags for the user
                  (bot-only)
        BOTADDR - returns a list containing the bot's address, telnet port,
                  and relay port (bot-only)
        HOSTS   - returns a list of hosts for the user
        LASTON  - returns a list containing the unixtime last seen and the
                  last seen place. LASTON #channel returns the time last
                  seen time for the channel or 0 if no info exists.
        INFO    - returns the user's global info line
        XTRA    - returns the user's XTRA info
        COMMENT - returns the master-visible only comment for the user
        EMAIL   - returns the user's e-mail address
        URL     - returns the user's url
        HANDLE  - returns the user's handle as it is saved in the userfile
        PASS    - returns the user's encrypted password
    Returns: info specific to each entry-type
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

lol, it didnt help me very much, i need to convert the unix time then and i have no clue how :P

If someone could make them i would appreciate it alot :>
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Have a look at the 'ctime' and 'duration' commands.
See tcl-commands.doc for details.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Well i figured out the last seen command with some help from perpleXa, now to find out how to get it to display all logged in users :<
Locked