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