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.

Unmask script?

Old posts that have not been replied to for several years.
Locked
C
Commari

Post by Commari »

Is there an unmask script, that unmasks a defined user?
Like u give his/her name and the bot says he's mask
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I don't understand.

Where is the bot suposed to look up the name? a db, irc?
V
Vosje

Post by Vosje »

What do you execly want. To "real" unmask ppl that's not on a channel where the bot is?

If you want this. let you bot do a whois
en bind the reply RAW code (like 311) to a Proc
Like :

bind pub n !saymask call_letsaymask
bind RAW - 311 call_saymask
proc call_letsaymask {nick uhost handle chan arg} {
global holdmyownnick
putserv "whois $arg"
# (this may also putserv "quote whois :$arg")
set holdmyownnick $nick
}

proc call_saymask {nick handle arg} {
global holdmyownnick
# if i'm right you must have lindex 2 and 3 of arg
set setmaskis ""
set setmaskis "[lindex $arg 2]@"
set setmaskis "$setmaskis[lindex $arg 3]"
putserv "NOTICE $holdmyownnick : The user have mask $setmaskis"
}

---
Well if you put this in a tcl and load it then you do in channel "!saymask <nick>"
and the bot will return you in a notice
the mask of that user (*Not Tested* but i'm sure it must work. But check in your DCC or telnet with .console +r of the RAW code from the Whois on your server.

Regards,
Vosje

V
Vosje

Post by Vosje »

Ow i forgat to say the mask you get back of the bot wil be the mask that's known on the server. If the server (such as Chatnet) use mode +x on users you get never the REAL mask back. This will work oderwise and that's someting i can't tell you *sorry*

Regards,
Vosje
Locked