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?
Possibilities:
//userhost $me
//dns $me
//userip $me
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
I using raw 302, then i strip out my host with: $cid $remove($remove($1-,$me $+ =+),$me) , and working so far
You should be able to get away with using $remove($1-,$me,=+)
$scid is needed, it show the current connection, if i don't use that i will end up with 1 ident@host ..
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.
Just show it in a personal info dialog, so it's not the whole world if it show the wrong one
but at lest it show the right host if they connect straight to the server
I should've clarified.
I meant you could use the $remove that I posted in place of the $remove that you had posted.