> On Mon, Mar 04, 2002 at 06:07:01PM +1100, Robert Norris wrote:
>> > > 3. Hack JID rewriting stuff into the JSM, so that any to/from attributes
>> > >    get rewritten to what I want them to be.
>> > 
>> > It already does this, in the <pthcsock> element in the c2s config just
>> > add:
>> >     <alias to="server.name"/>
>> > 
>> > It's ugly, but it does all the magic to/from replacing so that things work
>> > just like you want :)  The above is the "default" one, you can also have
>> > multiple <alias to="real.server">what.client.uses</alias> in there.
>> 
>> That's interesting to know. It's pretty disgusting (as most hacks of
>> this type are), and it still has the problem that the client thinks its
>> JID is one thing while the rest of the network knows it as something

> Yes. This is the problem with <alias/> - it wasn't very well known early
> on in the stages of client development, so it wasn't implemented (AFAIK)
> as widely as one would have liked. (I am just as guilty - sjabber was 
> written before I knew much about the full server config options).

> dj

If a client connects to a server through an address which is
different from the servers name and it has an <alias> set up for that
address is there any way for the client to determine the servers
actual name?

The solution I have in my client right now is to let the user enter
their full JID in the username box if it differs from username@server.

Thomas Parslow (PatRat)
E-Mail/Jabber: [EMAIL PROTECTED]
ICQ: 26359483

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to