On Wed, 27 Apr 2005 07:57, Bob Gilson wrote: > Carolina Ardohain wrote: > >Is there a way to detect multiple resource connections? I want to run > >a bot that connect to the server but it need to detect if connected > >with same resource and try to connect again with other. > > > >I'm using jabberd2s8 as server. > > Why not use two accounts: checker and bot? Put bot on checker's roster. > Login as checker and see if bot is present. If so, exit. Otherwise, > logout and login as bot.
At that point you might as well just use the two resources. Join
from /checker, and if /bot isn't online, join from /bot and then disconnect
from /checker. :-)
I assume that the default behaviour of jabberd2 is to boot off the existing
session. I don't suppose there is a way to change that behaviour? It would
result in a slightly more elegant solution (/bot logs in, fails, logs in
as /bot2, done.)
TX
--
Email: Trejkaz Xaoza <[EMAIL PROTECTED]>
Web site: http://trypticon.org/
Jabber ID: [EMAIL PROTECTED]
GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
pgpuQzn5JkS7a.pgp
Description: PGP signature
_______________________________________________ jdev mailing list [email protected] http://mail.jabber.org/mailman/listinfo/jdev
