Don't share an activity if it's name doesn't match our owner's nickname

This commit is contained in:
Dan Williams 2006-06-19 15:10:37 -04:00
parent 072fea84a0
commit 40483bb856

View File

@ -514,6 +514,8 @@ class PresenceService(gobject.GObject):
raise RuntimeError("presence service must be started first.") raise RuntimeError("presence service must be started first.")
rs_name = service.get_name() rs_name = service.get_name()
if self.get_owner() and rs_name != self.get_owner().get_nick_name():
raise RuntimeError("Tried to register a service that didn't have Owner nick as the service name!")
rs_stype = service.get_full_type() rs_stype = service.get_full_type()
rs_port = service.get_port() rs_port = service.get_port()
rs_props = service.get_properties() rs_props = service.get_properties()