Mercurial > libervia-backend
comparison sat.tac @ 90:4020931569b8
Tarot Game: session initialization
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 23 May 2010 16:39:05 +0930 |
parents | 23caf1051099 |
children | 783e9d6980ec |
comparison
equal
deleted
inserted
replaced
89:23caf1051099 | 90:4020931569b8 |
---|---|
576 | 576 |
577 | 577 |
578 ## jabber methods ## | 578 ## jabber methods ## |
579 | 579 |
580 def sendMessage(self,to,msg,type='chat', profile_key='@DEFAULT@'): | 580 def sendMessage(self,to,msg,type='chat', profile_key='@DEFAULT@'): |
581 print "sendtype=", type #gof | |
582 #FIXME: check validity of recipient | 581 #FIXME: check validity of recipient |
583 profile = self.memory.getProfileName(profile_key) | 582 profile = self.memory.getProfileName(profile_key) |
584 assert(profile) | 583 assert(profile) |
585 current_jid = self.profiles[profile].jid | 584 current_jid = self.profiles[profile].jid |
586 debug(_("Sending jabber message to %s..."), to) | 585 debug(_("Sending jabber message to %s..."), to) |