Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/chat/GroupChat.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-06-18 18:14:59 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-06-18 18:14:59 (GMT)
commit9d7a7f80504f3154cbd61d3e8c98bbebcbce4eb4 (patch)
tree1f3b7f75f46fa14d444cbcb913bcbd903002b9c9 /sugar/chat/GroupChat.py
parent51ea9eedba1891abdc004433bfe29a4ae3cc50b1 (diff)
Fix the confusion when running multiple instances on the
same box by passing the nick name in the message.
Diffstat (limited to 'sugar/chat/GroupChat.py')
-rw-r--r--sugar/chat/GroupChat.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sugar/chat/GroupChat.py b/sugar/chat/GroupChat.py
index f143226..5ab0645 100644
--- a/sugar/chat/GroupChat.py
+++ b/sugar/chat/GroupChat.py
@@ -39,8 +39,9 @@ class GroupChat(Chat):
def _group_recv_message(self, address, msg):
pservice = PresenceService.get_instance()
- buddy = pservice.get_buddy_by_address(address)
+ [nick, msg] = self.deserialize_message(msg)
+ buddy = pservice.get_buddy_by_nick_name(nick)
if buddy:
self.recv_message(buddy, msg)
else:
- logging.error('Cannot map %s to a buddy.' % (address))
+ logging.error('The buddy %s is not present.' % (nick))