# HG changeset patch # User Goffi # Date 1361618734 -3600 # Node ID c8b129a3c209cec6792d6f248f361c832f6a3665 # Parent 16a9affc49cf1f884ba4468c1bd57ed843b80da8 core: fixed sendMessage diff -r 16a9affc49cf -r c8b129a3c209 frontends/src/primitivus/primitivus --- a/frontends/src/primitivus/primitivus Fri Feb 22 00:22:50 2013 +0100 +++ b/frontends/src/primitivus/primitivus Sat Feb 23 12:25:34 2013 +0100 @@ -331,9 +331,9 @@ chat = self.chat_wins[contact] try: self.sendMessage(contact, - editBar.get_edit_text(), - mess_type = "groupchat" if chat.type == 'group' else "chat", - profile_key=self.profile) + editBar.get_edit_text(), + mess_type = "groupchat" if chat.type == 'group' else "chat", + profile_key=self.profile) except: self.notify(_("Error while sending message")) editBar.set_edit_text('') diff -r 16a9affc49cf -r c8b129a3c209 src/core/sat_main.py --- a/src/core/sat_main.py Fri Feb 22 00:22:50 2013 +0100 +++ b/src/core/sat_main.py Sat Feb 23 12:25:34 2013 +0100 @@ -469,7 +469,7 @@ def _sendMessage(self, to_s, msg, subject=None, mess_type='auto', profile_key='@NONE@'): to_jid = jid.JID(to_s) - self.sendMessage(to_jid, msg, subject, mess_type, profile_key) + self.sendMessage(to_jid, msg, subject, mess_type, profile_key=profile_key) def sendMessage(self, to_jid, msg, subject=None, mess_type='auto', no_trigger = False, profile_key='@NONE@'): #FIXME: check validity of recipient