egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

whois'ing with eggdrop

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Tristam
Voice


Joined: 21 Sep 2003
Posts: 17
Location: Finland

PostPosted: Tue Jan 17, 2006 4:33 pm    Post subject: whois'ing with eggdrop Reply with quote

Hello! I'm not sure in which category this post would belong, move it if necessary Smile

I'm an ircop in our small irc-server around ~100 people, we're running the latest unrealircd. I need a script to do this:

When people say !whois <nick> in a channel, the bot would whois the user given, and give out the real ip/host of the user, This is needed so other staff members can check out some users ip's with the bot, without being ircops themselves..

I've got so far with some whois scripts found in the tcl archive, that I can output the cloaked host of the user, but anyone can see that! I need the _real_ host. (only ircops can see that)

Yeah, this is really a bit hard for me Smile Anyone, some ideas? I made the bot ircop already, but how can I output:

Code:
[talviesa] is connecting from *@a80-186-216-***.elisa-laajakaista.fi 80.186.216.***


instead of what I get now:

Code:
 [talviesa] (talviesa@***.***.***.***): talviesa


Any ideas, anyone? Smile
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Tue Jan 17, 2006 5:50 pm    Post subject: Reply with quote

Quote:

<- :irc.localhost.com 378 caesar caesar :is connecting from *@127.0.0.1 127.0.0.1

Bind the raw 378 and get the ip with something like:
Code:

bind raw - 378 raw:378

proc raw:378 {from key txt} {
  putlog "realip is [lindex [split $txt] e]"
}

_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Tristam
Voice


Joined: 21 Sep 2003
Posts: 17
Location: Finland

PostPosted: Wed Jan 18, 2006 6:55 pm    Post subject: Reply with quote

Yay! That made the trick.. got it working now, great!

Thanks!!!
_________________
Tristam - tristam@iki.fi
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber