[jdev] Detecting multiple resource connections

Trejkaz trejkaz at trypticon.org
Wed Apr 27 03:37:32 CDT 2005

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.)


             Email: Trejkaz Xaoza <trejkaz at trypticon.org>
          Web site: http://trypticon.org/
         Jabber ID: trejkaz at jabber.zim.net.au
   GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F  A62C B8C7 BC8B 037E EA73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20050427/10701a4a/attachment-0002.pgp>

More information about the JDev mailing list