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.
Old posts that have not been replied to for several years.
r0t3n
Owner
Posts: 507 Joined: Tue May 31, 2005 6:56 pm
Location: UK
Post
by r0t3n » Sat Jun 11, 2005 2:30 pm
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
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Jun 11, 2005 2:34 pm
tcl-commands.doc has all the answers you need
r0t3n
Owner
Posts: 507 Joined: Tue May 31, 2005 6:56 pm
Location: UK
Post
by r0t3n » Sat Jun 11, 2005 8:10 pm
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
De Kus
Revered One
Posts: 1361 Joined: Sun Dec 15, 2002 11:41 am
Location: Germany
Post
by De Kus » Sun Jun 12, 2005 10:00 am
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...
r0t3n
Owner
Posts: 507 Joined: Tue May 31, 2005 6:56 pm
Location: UK
Post
by r0t3n » Sun Jun 12, 2005 11:32 am
someone said to use [hand2nick $user] will this work ?
r0t3n @ #r0t3n @ Quakenet
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sun Jun 12, 2005 11:39 am
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
}
r0t3n
Owner
Posts: 507 Joined: Tue May 31, 2005 6:56 pm
Location: UK
Post
by r0t3n » Sun Jun 12, 2005 5:13 pm
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