changeset 605:c8b129a3c209

core: fixed sendMessage
author Goffi <goffi@goffi.org>
date Sat, 23 Feb 2013 12:25:34 +0100
parents 16a9affc49cf
children 21ddafccf32d
files frontends/src/primitivus/primitivus src/core/sat_main.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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('')
--- 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