Use the chat service, get to it by the nick name

This commit is contained in:
Marco Pesenti Gritti 2006-05-11 22:37:24 -04:00
parent 6f3c1ac740
commit 6f13f8ddf6

View File

@ -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)