fix typo in finction name and correctly retract location data
This commit is contained in:
parent
5e2f1cf770
commit
7c2cb2dd93
|
@ -546,7 +546,7 @@ class ConnectionPEP(object):
|
|||
if not self.pep_supported:
|
||||
return
|
||||
self.send_activity(None)
|
||||
# not all server support new XEP, so we still retract
|
||||
# not all client support new XEP, so we still retract
|
||||
self._pubsub_connection.send_pb_retract('', xmpp.NS_ACTIVITY, '0')
|
||||
|
||||
def send_mood(self, mood, message=None):
|
||||
|
@ -564,7 +564,7 @@ class ConnectionPEP(object):
|
|||
if not self.pep_supported:
|
||||
return
|
||||
self.send_mood(None)
|
||||
# not all server support new XEP, so we still retract
|
||||
# not all client support new XEP, so we still retract
|
||||
self._pubsub_connection.send_pb_retract('', xmpp.NS_MOOD, '0')
|
||||
|
||||
def send_tune(self, artist='', title='', source='', track=0, length=0,
|
||||
|
@ -595,7 +595,7 @@ class ConnectionPEP(object):
|
|||
if not self.pep_supported:
|
||||
return
|
||||
self.send_tune(None)
|
||||
# not all server support new XEP, so we still retract
|
||||
# not all client support new XEP, so we still retract
|
||||
self._pubsub_connection.send_pb_retract('', xmpp.NS_TUNE, '0')
|
||||
|
||||
def send_nickname(self, nick):
|
||||
|
@ -609,7 +609,7 @@ class ConnectionPEP(object):
|
|||
if not self.pep_supported:
|
||||
return
|
||||
self.send_nickname(None)
|
||||
# not all server support new XEP, so we still retract
|
||||
# not all client support new XEP, so we still retract
|
||||
self._pubsub_connection.send_pb_retract('', xmpp.NS_NICK, '0')
|
||||
|
||||
def send_location(self, info):
|
||||
|
@ -626,7 +626,7 @@ class ConnectionPEP(object):
|
|||
if not self.pep_supported:
|
||||
return
|
||||
self.send_location({})
|
||||
# not all server support new XEP, so we still retract
|
||||
# not all client support new XEP, so we still retract
|
||||
self._pubsub_connection.send_pb_retract('', xmpp.NS_LOCATION, '0')
|
||||
|
||||
# vim: se ts=3:
|
||||
|
|
Loading…
Reference in New Issue