This commit is contained in:
Marco Pesenti Gritti 2006-05-05 13:17:37 -04:00
parent 4bd94b0019
commit dd95b7e8bc

View File

@ -339,10 +339,10 @@ class GroupChat(Chat):
self._controller.notify_new_message(self, None) self._controller.notify_new_message(self, None)
def _buddy_recv_message(self, sender, msg): def _buddy_recv_message(self, sender, msg):
chat = buddy.chat() chat = sender.chat()
if not chat: if not chat:
chat = BuddyChat(self._parent, buddy) chat = BuddyChat(self._parent, sender)
buddy.set_chat(chat) sender.set_chat(chat)
chat.activity_connect_to_shell() chat.activity_connect_to_shell()
chat.recv_message(message) chat.recv_message(message)