From dddc9e5758162e941f10eadd60acdbbb9f1260bf Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Wed, 28 Oct 2009 22:51:17 +0100 Subject: [PATCH] a few last tweaks to fix errors found during testing. fixes #49 --- pyweb/mumble/management/server_detect.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyweb/mumble/management/server_detect.py b/pyweb/mumble/management/server_detect.py index 02e5ad1..d7c902c 100644 --- a/pyweb/mumble/management/server_detect.py +++ b/pyweb/mumble/management/server_detect.py @@ -97,7 +97,7 @@ def find_existing_instances( **kwargs ): "dbus": dbusName, } - if v: + if v > 1: print 'Found new Murmur instance... ', # now create a model for the record set. @@ -107,15 +107,17 @@ def find_existing_instances( **kwargs ): print "Syncing Murmur instance... ", instance.configureFromMurmur(); - print instance.name; - instance.save( dontConfigureMurmur=True ); + if v > 1: + print instance.name; + instance.save( dontConfigureMurmur=True ); # Now search for players on this server that have not yet been registered if v > 1: print "Looking for registered Players on Server id %d." % id; - if id in bootedIDs: + + if instance.booted: players = ctl.getRegisteredPlayers(id); for playerdata in players: