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.

current irc nickname and host

Old posts that have not been replied to for several years.
Locked
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

current irc nickname and host

Post by r0t3n »

How can i get the host of a user added to the eggdrop, and their current irc nick, i want it for my userlist.

(( $user || current irc nickname/offline if offline || host || +-flags ))

I dont know if this is possible, please help!

Thanks in advance!!
r0t3n @ #r0t3n @ Quakenet
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

tcl-commands.doc has all the answers you need
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

ok, i know how to get the host: getuser $user "HOSTS"

but how can i get the users currecnt irc nickname, or if they are offline, it displays user is offline

Thanks in advance!!
r0t3n @ #r0t3n @ Quakenet
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

RTFM
tip: you are looking for "onchan"
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

someone said to use [hand2nick $user] will this work ?
r0t3n @ #r0t3n @ Quakenet
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Tosser^^ wrote:someone said to use [hand2nick $user] will this work ?
yeah you can do something like this

Code: Select all

if {[set usersnick [hand2nick $user]] == ""} {
 # user is either offline, or is not in any of the bot's channels.
} {
 # $usersnick is the nick that's identified by the bot as $user
}
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Thx Sir_fz

works lovely, im going to release the userlit tomorrow, for peeps to download, and i got some other scripts Also, Thanks for all your help guys !!
r0t3n @ #r0t3n @ Quakenet
Locked