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.

the build in whois

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

the build in whois

Post by metroid »

When you do a whois with the eggdrop in dcc chat, it will tell you what handle it is. For example this is what shows up when i do it on my own host:

Code: Select all

[13:37:19] <MeTroiD> .whois *!*@MeTroiDz.users.quakenet.org
[13:37:19] <Q13> [13:37] tcl: builtin dcc call: *dcc:whois MeTroiD 7 *!*@MeTroiDz.users.quakenet.org
[13:37:19] <Q13> [13:37] #MeTroiD# whois *!*@MeTroiDz.users.quakenet.org
[13:37:19] <Q13> HANDLE                           PASS NOTES FLAGS           LAST
[13:37:19] <Q13> MeTroiD                          yes      0 hjlmnoptx       10:36 (#Q12)
[13:37:19] <Q13>                          #Q12               -               10:36
[13:37:19] <Q13>                          #v1per             -               10:30
[13:37:19] <Q13>   HOSTS: *!*@MeTroiDz.users.quakenet.org
[13:37:19] <Q13>   EMAIL: metroidz@gmail.com
[13:37:19] <Q13>   Saved Console Settings:
[13:37:19] <Q13>     Channel: #v1per
[13:37:19] <Q13>     Console flags: mkcobxsdw, Strip flags: -, Echo: yes
[13:37:19] <Q13>     Page setting: 0, Console channel: 0
[13:37:19] <Q13>   INFO: moo
Is there any way to make a script out of this, For example, making it look up hosts and tell you what handle it belongs too and who are logged in with that handle?
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

try 'finduser' (tcl-commands.doc)
Have you ever read "The Manual"?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Thanks user, ill have a look :)
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Ok, well it finds the handle, but can it also be used to see who is currently "logged" in to the handle
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Code: Select all

foreach who [dcclist chat] {   
 if {[string match "*$whatever*" $who]} {   
   # w00t, a match!   
 }   
}   
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

I didnt mean dcc chat, i meant like, When it sees your host it knows your <handle> how do i make it list the nicks it knows are there with the certain host.

For example the Q9 whois (you prolly won't know what i mean if your not on quakenet)

Code: Select all

Q9- Account users  : MeTroiD 
Thats what im trying to achieve, cause when i whois on someone that is authed twice, You get this :

Code: Select all

-Q9- Account users  : Aimbot VerTiCaL
Im trying to figure out how to make it do this
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Post by dollar »

Search the docs for 'hand2nick'.
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

No luck, i still only got my own nick as a result eventhough i added someone else to my hand
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

I already solved it btw, The script i made shows me this now

Code: Select all

[11:42:39] -> *Q13* whois MeTroiD
[11:42:40] -Q13- -Information for user MeTroiD (using account MeTroiD)-----
[11:42:40] -Q13- User flags    : +n.
[11:42:40] -Q13- Account users : MeTroiD
[11:42:40] -Q13- User created  : 24/08/04 20:11
[11:42:40] -Q13- Last seen     : 14/09/04 11:34
[11:42:42] -Q13- user@host     : *!*@MeTroiDz.users.quakenet.org
[11:42:44] -Q13- Email         : metroidz@gmail.com
[11:42:46] -Q13- Info          : moo
[11:42:48] -Q13- End of list.
or for example when someone else is logged into my handle aswell

Code: Select all

[11:42:39] -> *Q13* whois MeTroiD
[11:42:40] -Q13- -Information for user MeTroiD (using account MeTroiD)-----
[11:42:40] -Q13- User flags    : +n.
[11:42:40] -Q13- Account users : MeTroiD v1per
[11:42:40] -Q13- User created  : 24/08/04 20:11
[11:42:40] -Q13- Last seen     : 14/09/04 11:34
[11:42:42] -Q13- user@host     : *!*@MeTroiDz.users.quakenet.org *!*@nova--.users.quakenet.org
[11:42:44] -Q13- Email         : metroidz@gmail.com
[11:42:46] -Q13- Info          : moo
[11:42:48] -Q13- End of list.
:)
Locked