comparison src/core/sat_main.py @ 605:c8b129a3c209

core: fixed sendMessage
author Goffi <goffi@goffi.org>
date Sat, 23 Feb 2013 12:25:34 +0100
parents 6fd1095b2b7b
children 84a6e83157c2
comparison
equal deleted inserted replaced
604:16a9affc49cf 605:c8b129a3c209
467 ret.append((conf_id, conf_type, data)) 467 ret.append((conf_id, conf_type, data))
468 return ret 468 return ret
469 469
470 def _sendMessage(self, to_s, msg, subject=None, mess_type='auto', profile_key='@NONE@'): 470 def _sendMessage(self, to_s, msg, subject=None, mess_type='auto', profile_key='@NONE@'):
471 to_jid = jid.JID(to_s) 471 to_jid = jid.JID(to_s)
472 self.sendMessage(to_jid, msg, subject, mess_type, profile_key) 472 self.sendMessage(to_jid, msg, subject, mess_type, profile_key=profile_key)
473 473
474 def sendMessage(self, to_jid, msg, subject=None, mess_type='auto', no_trigger = False, profile_key='@NONE@'): 474 def sendMessage(self, to_jid, msg, subject=None, mess_type='auto', no_trigger = False, profile_key='@NONE@'):
475 #FIXME: check validity of recipient 475 #FIXME: check validity of recipient
476 profile = self.memory.getProfileName(profile_key) 476 profile = self.memory.getProfileName(profile_key)
477 assert(profile) 477 assert(profile)