[jdev] how to program a jabber game server
Daniel Noll
daniel at noll.id.au
Thu Feb 8 21:27:01 CST 2007
> On Fri, Feb 09, 2007 at 08:00:26AM +1100, Daniel Noll wrote:
>> Maybe you can. If the server's behaving itself, it should let MUC
>> requests slip through to an ordinary user. A normal client wouldn't
>> support it but maybe a bot could be crafted to behave exactly like a
>> MUC room?
>
> You weld have to encapsulate the stanzas somehow, at last on the "way
> back" because you change the from attribute. If the bot connected to
> normal server and just told the component to announce it, it would not
> work without encapsulation.
Good point... if it were to work you would need one bot resource per user
connected to the fake MUC. If you could do that without connecting to the
server a second time, maybe it wouldn't be so hard.
It wouldn't really be efficient since you'd need to spam out one message
to each user when someone sends one message... but at the same time, this
problem already exists in MUC when the conference server isn't attached to
your own server. :-/
Daniel
--
Jabber: daniel at noll.id.au
Email: daniel at noll.id.au
Web: http://noll.id.au/daniel/
More information about the JDev
mailing list