From 6942907e2654a29a628fa6eb04d7e1fc42f3191f Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Wed, 24 Feb 2010 19:17:49 +0100 Subject: [PATCH] unset the registerhostname config field if the netloc is unknown --- pyweb/mumble/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyweb/mumble/models.py b/pyweb/mumble/models.py index c8a94f8..9498431 100644 --- a/pyweb/mumble/models.py +++ b/pyweb/mumble/models.py @@ -191,6 +191,8 @@ class Mumble( models.Model ): if self.netloc: self.ctl.setConf( self.srvid, 'registerhostname', self.netloc ); + else: + self.ctl.setConf( self.srvid, 'registerhostname', '' ); # Now allow django to save the record set return models.Model.save( self );