When Someone Says !address in a channel or in a pm it gives the address of $2 () in a pm. Really simple script once again.
on *:TEXT:!address *:*:{
msg $nick $address($2,0) is $nick 's hostmask
}
;i need to type more for this to send xD dont copy this part
lol Lucius, that was a hypocritical mistake. This time I truly give up on that thread. There will be endless pain to ever make another comment to that post. They are bunch of trolls and will try anything to bring their post to the public attention badly.
Oh WorldDMT, you've reiterated mitch's mistake found by me and napa initially. :p For the identifier $2, you don't need a space or $+, simply use > $2's
I wasn't indicating you as a fighter, but implicating those who fight with other users every chance they get. They flame under their threads to get attention. They're so called attention-getters and trolls, which are a pain in the neck..
And yet you keep going back to Renegade-IRC pic thread?
LOL
:D
btw: Keep at it mitch21236 I know napa's edits usually look like a foreign language but eventually it will click. (it took a year of lazy self teaching to get a hint for me lol)
Hi mitch
gonna give you a code Jethro_ did for me based on this which i wanted a long time ago. its a compex way of doing it but it will help you learn a bit more on coding styles based on what you are doing :)
place it in a clean blank remotes window on the bot.
then to use...
in any channel ... just simply type whoid
and the bot shall deliver (note my command is slightly different and shows in channel not pm)
idshow Cheiron -irc.sassirc.com- *** Titan_Bot (main@xxx.xxx.xxx.xxx) did a /whois on you. Cheiron's whois ID: ~Looking@ServicesAdmin.SassIRC.com and Real Name is: Why
raw 311:*: {
.msg #YourChannel $2 $+ 's ID is: $+($3,@,$4) and Real Name is: $6- | halt
}
on *:TEXT:*:#: {
if ($nick isop $chan) && ($regex($1-,/(^|\s)(whoid?d?s?\s\S+)/i)) {
tokenize 32 $regml(2) | whois $2
}
}
note.. this one is an ops only rank for use. to edit for your purpose
change isop to ison and .msg #yourchannel to .msg $nick
hope this will help with your coding and learning :)
also the thing about using $address() is that if the person has been idle it wont show.
all you get is > is so-an-so's hostmask
it would prob be better to use a /who nick then use the raw to get the addy
I think it's raw 352 for the addy line then haltdef raw 315, but raws do
vary from server to server.
$nick is the person who triggers the script. You were supposed to use $2 instead. A little trigger protection is needed so the client that runs the code doesn't get spammed:
on *:text:*:*:{
tokenize 32 $strip($1-)
if ($1 == !address) && (!%f) && ($2 ison #) {
inc -u3 %f | msg $iif(#,#,$nick) $address($2,0) is $2's hostmask.
}
}
If you're gonna use * instead of the # in your text event, you should use $iif(#,#,$nick) to make it work for either the channel or PM. And as napa said, it's best you strip out control codes.