From 40483bb8561895241675018f4a7c4a78368b1f24 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 19 Jun 2006 15:10:37 -0400 Subject: [PATCH] Don't share an activity if it's name doesn't match our owner's nickname --- sugar/presence/PresenceService.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sugar/presence/PresenceService.py b/sugar/presence/PresenceService.py index 7063b413..dc563b26 100644 --- a/sugar/presence/PresenceService.py +++ b/sugar/presence/PresenceService.py @@ -514,6 +514,8 @@ class PresenceService(gobject.GObject): raise RuntimeError("presence service must be started first.") 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_port = service.get_port() rs_props = service.get_properties()