mIRC Homepage
Posted By: sparta $host - 13/04/09 11:13 PM
Any way to return my own host, without using $host to do it? i noticed that if i using lookup method server it return my host, but if i change it to normal it return my computers name, and since people change the settings the script will be broken if it return the computer name instead of the host. $address($me,1) don't work ether, so any ideas on how to solve this?
Posted By: RusselB Re: $host - 14/04/09 12:22 AM
Possibilities:
//userhost $me
//dns $me
//userip $me
Posted By: sparta Re: $host - 14/04/09 09:07 AM
Thnx.. smile
Posted By: genius_at_work Re: $host - 14/04/09 01:46 PM
The real host that the server sees you connecting from is displayed in RAW 001. Also, you can just send yourself a /msg or /notice and use the same address identifiers you would use to see another user's host. Note that those two hosts may be different due to masking or vhosts.

-genius_at_work
Posted By: sparta Re: $host - 14/04/09 03:51 PM
I using raw 302, then i strip out my host with: $cid $remove($remove($1-,$me $+ =+),$me) , and working so far smile
Posted By: RusselB Re: $host - 14/04/09 10:03 PM
You should be able to get away with using $remove($1-,$me,=+)
Posted By: sparta Re: $host - 14/04/09 10:52 PM
$scid is needed, it show the current connection, if i don't use that i will end up with 1 ident@host .. smirk
Posted By: Pivo Re: $host - 14/04/09 10:58 PM
Note that those possibilities also fail if you're using a BNC or any other Proxy...
Whether this is a problem for you or not depends on what you're going to do with the host.
Posted By: sparta Re: $host - 14/04/09 11:54 PM
Just show it in a personal info dialog, so it's not the whole world if it show the wrong one smile but at lest it show the right host if they connect straight to the server smile
Posted By: RusselB Re: $host - 15/04/09 12:01 AM
I should've clarified.
I meant you could use the $remove that I posted in place of the $remove that you had posted.
© mIRC Discussion Forums