|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
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?
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Possibilities: //userhost $me //dns $me //userip $me
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
Thnx..
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
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
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I using raw 302, then i strip out my host with: $cid $remove($remove($1-,$me $+ =+),$me) , and working so far
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
You should be able to get away with using $remove($1-,$me,=+)
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
$scid is needed, it show the current connection, if i don't use that i will end up with 1 ident@host ..
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Jun 2008
Posts: 58
Babel fish
|
Babel fish
Joined: Jun 2008
Posts: 58 |
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.
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
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
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
I should've clarified. I meant you could use the $remove that I posted in place of the $remove that you had posted.
|
|
|
|
|
|