comparison frontends/src/primitivus/primitivus @ 276:a00e87d48213

bridge, bridge constructor: fixed mix stuff
author Goffi <goffi@goffi.org>
date Sun, 30 Jan 2011 22:54:58 +0100
parents b1794cbb88e5
children ede26abf6ca1
comparison
equal deleted inserted replaced
275:01a0bd6e7fae 276:a00e87d48213
328 contact = self.contactList.get_contact() ###Based on the fact that there is currently only one contact selectableat once 328 contact = self.contactList.get_contact() ###Based on the fact that there is currently only one contact selectableat once
329 if contact: 329 if contact:
330 chat = self.chat_wins[contact] 330 chat = self.chat_wins[contact]
331 self.bridge.sendMessage(contact, 331 self.bridge.sendMessage(contact,
332 editBar.get_edit_text(), 332 editBar.get_edit_text(),
333 type = "groupchat" if chat.type == 'group' else "chat", 333 mess_type = "groupchat" if chat.type == 'group' else "chat",
334 profile_key=self.profile) 334 profile_key=self.profile)
335 editBar.set_edit_text('') 335 editBar.set_edit_text('')
336 336
337 def newMessage(self, from_jid, msg, type, to_jid, profile): 337 def newMessage(self, from_jid, msg, type, to_jid, profile):
338 if not self.check_profile(profile): 338 if not self.check_profile(profile):