Exemplo n.º 1
0
 def sendPresence(self, jid=None, typ=None, requestRoster=0):
     """ Send some specific presence state.
         Can also request roster from server if according agrument is set."""
     if requestRoster: roster.Roster().PlugIn(self)
     self.send(dispatcher.Presence(to=jid, typ=typ))
Exemplo n.º 2
0
 def sendPresence(self, jid=None, typ=None, requestRoster=0):
     if requestRoster: roster.Roster().PlugIn(self)
     self.send(dispatcher.Presence(to=jid, typ=typ))