| View previous topic :: View next topic |
| Author |
Message |
Tristam Voice

Joined: 21 Sep 2003 Posts: 17 Location: Finland
|
Posted: Tue Jan 17, 2006 4:33 pm Post subject: whois'ing with eggdrop |
|
|
Hello! I'm not sure in which category this post would belong, move it if necessary
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 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?  |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Tue Jan 17, 2006 5:50 pm Post subject: |
|
|
| 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 |
|
 |
Tristam Voice

Joined: 21 Sep 2003 Posts: 17 Location: Finland
|
Posted: Wed Jan 18, 2006 6:55 pm Post subject: |
|
|
Yay! That made the trick.. got it working now, great!
Thanks!!! _________________ Tristam - tristam@iki.fi |
|
| Back to top |
|
 |
|
|
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
|
|