From 6f13f8ddf6a10c5163ea18371037c57da650c7de Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 11 May 2006 22:37:24 -0400 Subject: [PATCH] Use the chat service, get to it by the nick name --- chat/chat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chat/chat.py b/chat/chat.py index d27bcd7a..e0705387 100755 --- a/chat/chat.py +++ b/chat/chat.py @@ -179,9 +179,10 @@ class BuddyChat(Chat): Chat.__init__(self, controller) def _start(self): - service_name = self._buddy.get_service_name() group = self._controller.get_group() - self._stream_writer = StreamWriter(group, service_name) + buddy_name = self._buddy.get_service_name() + service = group.get_service(buddy_name, CHAT_SERVICE_TYPE) + self._stream_writer = StreamWriter(group, service) def activity_on_connected_to_shell(self): Chat.activity_on_connected_to_shell(self)