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.

hostmark / ip

Old posts that have not been replied to for several years.
Locked
b
bigmo

hostmark / ip

Post by bigmo »

i wanna know how i can get
1) the hostmark
2) the ip
of anyone in my chans..
does anyone know how it works?
pls help me.. thx4help :)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You can use the "getchanhost" command provided by Tcl, to obtain the userhost of a user.

Simply using "[lindex [split [getchanhost $user $chan] @] 1]" (off the top of my head, and with imaginary variables), should get the hostname the user has on IRC.

You can use DNS functions then, to obtain and IP or host, depending on your needs.
Locked