mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2004
Posts: 20
W
Wompie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Oct 2004
Posts: 20
I am just wondering if there is a way of setting the return of the /userhost command into a variable. I need the whole of the user's host.

Joined: Jul 2004
Posts: 59
L
Babel fish
Offline
Babel fish
L
Joined: Jul 2004
Posts: 59
You can use raw 311:*: set %blah $1-

Raw 311 will give you the full address as in

nick!uid@=vFonmh-01-748-56-758.somedatanet.org

Joined: Oct 2004
Posts: 20
W
Wompie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Oct 2004
Posts: 20
thanx fer the quick reply smile .....now is there any way of gettin a nick bak from a userhost?
lol

Joined: Jul 2004
Posts: 59
L
Babel fish
Offline
Babel fish
L
Joined: Jul 2004
Posts: 59
Can you tell me exactly what your trying to do, I might be able to help better

Joined: Oct 2004
Posts: 20
W
Wompie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Oct 2004
Posts: 20
well, im making a messenger type thing fer irc. I have it all set up to use the person's friend's nick to see if the persons online using $comchan. But when the person changes their nick to something else it shows them as offline. So i'd like to get my messenger to use the hostnames of the friends so i can get the nick from the host name and see if they are online that way.

Joined: Jul 2004
Posts: 59
L
Babel fish
Offline
Babel fish
L
Joined: Jul 2004
Posts: 59
Well here is what I have been using. this is for a whois so be sure to check the Raw # that its the same thing

raw 311:*: {
set %blah $remove($1,=*)
set %full address $1
}

This will set %blah to the nick and %fulladdy to the full address. Hope it helps

Joined: Aug 2004
Posts: 101
D
Vogon poet
Offline
Vogon poet
D
Joined: Aug 2004
Posts: 101
Well IAL (Internal Address List) already does that for you! Use the address stored there directly with $ial identifier!
/help $ial
Even better, you can /guser (type 2) the nick in a specified user level and then use remotes with this level.
/help Access Levels


Maybe I wake up one day to notice that all my life was just a dream!
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
That is actualy incorrect depending on what irc server your on
Example:
If I connect to a server with cloak masking
//echo ! $ial($Me)
! Static!Static@Fused-5C3F7783.mn.client2.attbi.com
But If I am on say efnet then it would return my userhost.
You want this
//echo ! $host

Joined: Oct 2004
Posts: 20
W
Wompie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Oct 2004
Posts: 20
Thanx fer the help guys smile ....im gonna be uploadin the new version to my site today if u wanna check it out. You do haveta register ta download it. It's free though.


Link Copied to Clipboard