Ensure that result stanzas are returned, as expected.
This commit is contained in:
parent
f759b0ada1
commit
5f4b528e6b
@ -103,7 +103,7 @@ class xep_0080(base_plugin):
|
|||||||
geoloc = Geoloc()
|
geoloc = Geoloc()
|
||||||
geoloc.values = kwargs
|
geoloc.values = kwargs
|
||||||
|
|
||||||
self.xmpp['xep_0163'].publish(geoloc,
|
return self.xmpp['xep_0163'].publish(geoloc,
|
||||||
node=Geoloc.namespace,
|
node=Geoloc.namespace,
|
||||||
options=options,
|
options=options,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
@ -126,7 +126,7 @@ class xep_0080(base_plugin):
|
|||||||
be executed when a reply stanza is received.
|
be executed when a reply stanza is received.
|
||||||
"""
|
"""
|
||||||
geoloc = Geoloc()
|
geoloc = Geoloc()
|
||||||
self.xmpp['xep_0163'].publish(geoloc,
|
return self.xmpp['xep_0163'].publish(geoloc,
|
||||||
node=Geoloc.namespace,
|
node=Geoloc.namespace,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
block=block,
|
block=block,
|
||||||
|
@ -63,7 +63,7 @@ class xep_0107(base_plugin):
|
|||||||
mood = UserMood()
|
mood = UserMood()
|
||||||
mood['value'] = value
|
mood['value'] = value
|
||||||
mood['text'] = text
|
mood['text'] = text
|
||||||
self.xmpp['xep_0163'].publish(mood,
|
return self.xmpp['xep_0163'].publish(mood,
|
||||||
node=UserMood.namespace,
|
node=UserMood.namespace,
|
||||||
options=options,
|
options=options,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
@ -86,7 +86,7 @@ class xep_0107(base_plugin):
|
|||||||
be executed when a reply stanza is received.
|
be executed when a reply stanza is received.
|
||||||
"""
|
"""
|
||||||
mood = UserMood()
|
mood = UserMood()
|
||||||
self.xmpp['xep_0163'].publish(mood,
|
return self.xmpp['xep_0163'].publish(mood,
|
||||||
node=UserMood.namespace,
|
node=UserMood.namespace,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
block=block,
|
block=block,
|
||||||
|
@ -63,7 +63,7 @@ class xep_0108(base_plugin):
|
|||||||
activity = UserActivity()
|
activity = UserActivity()
|
||||||
activity['value'] = (general, specific)
|
activity['value'] = (general, specific)
|
||||||
activity['text'] = text
|
activity['text'] = text
|
||||||
self.xmpp['xep_0163'].publish(activity,
|
return self.xmpp['xep_0163'].publish(activity,
|
||||||
node=UserActivity.namespace,
|
node=UserActivity.namespace,
|
||||||
options=options,
|
options=options,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
@ -86,7 +86,7 @@ class xep_0108(base_plugin):
|
|||||||
be executed when a reply stanza is received.
|
be executed when a reply stanza is received.
|
||||||
"""
|
"""
|
||||||
activity = UserActivity()
|
activity = UserActivity()
|
||||||
self.xmpp['xep_0163'].publish(activity,
|
return self.xmpp['xep_0163'].publish(activity,
|
||||||
node=UserActivity.namespace,
|
node=UserActivity.namespace,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
block=block,
|
block=block,
|
||||||
|
@ -69,7 +69,7 @@ class xep_0118(base_plugin):
|
|||||||
tune['title'] = title
|
tune['title'] = title
|
||||||
tune['track'] = track
|
tune['track'] = track
|
||||||
tune['uri'] = uri
|
tune['uri'] = uri
|
||||||
self.xmpp['xep_0163'].publish(tune,
|
return self.xmpp['xep_0163'].publish(tune,
|
||||||
node=UserTune.namespace,
|
node=UserTune.namespace,
|
||||||
options=options,
|
options=options,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
@ -92,7 +92,7 @@ class xep_0118(base_plugin):
|
|||||||
be executed when a reply stanza is received.
|
be executed when a reply stanza is received.
|
||||||
"""
|
"""
|
||||||
tune = UserTune()
|
tune = UserTune()
|
||||||
self.xmpp['xep_0163'].publish(tune,
|
return self.xmpp['xep_0163'].publish(tune,
|
||||||
node=UserTune.namespace,
|
node=UserTune.namespace,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
block=block,
|
block=block,
|
||||||
|
@ -88,7 +88,7 @@ class xep_0163(base_plugin):
|
|||||||
if node is None:
|
if node is None:
|
||||||
node = stanza.namespace
|
node = stanza.namespace
|
||||||
|
|
||||||
self.xmpp['xep_0060'].publish(ifrom, node,
|
return self.xmpp['xep_0060'].publish(ifrom, node,
|
||||||
payload=stanza.xml,
|
payload=stanza.xml,
|
||||||
options=options,
|
options=options,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
|
@ -62,7 +62,7 @@ class xep_0172(base_plugin):
|
|||||||
"""
|
"""
|
||||||
nickname = UserNick()
|
nickname = UserNick()
|
||||||
nickname['nick'] = nick
|
nickname['nick'] = nick
|
||||||
self.xmpp['xep_0163'].publish(nickname,
|
return self.xmpp['xep_0163'].publish(nickname,
|
||||||
node=UserNick.namespace,
|
node=UserNick.namespace,
|
||||||
options=options,
|
options=options,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
@ -85,7 +85,7 @@ class xep_0172(base_plugin):
|
|||||||
be executed when a reply stanza is received.
|
be executed when a reply stanza is received.
|
||||||
"""
|
"""
|
||||||
nick = UserNick()
|
nick = UserNick()
|
||||||
self.xmpp['xep_0163'].publish(nick,
|
return self.xmpp['xep_0163'].publish(nick,
|
||||||
node=UserNick.namespace,
|
node=UserNick.namespace,
|
||||||
ifrom=ifrom,
|
ifrom=ifrom,
|
||||||
block=block,
|
block=block,
|
||||||
|
Loading…
Reference in New Issue
Block a user