core: Deferred in onMessage.

onMessage now use a deferred which is passed to MessageReceived trigger through the post_treat parameter. This can be used by plugins to add deferred in the callback chain.
This commit is contained in:
Goffi 2013-10-31 17:18:04 +01:00
commit 59b4505dfd

View file

@ -134,7 +134,7 @@ class XEP_0085(object):
if (category, name) == (PARAM_KEY, PARAM_NAME):
self.updateEntityData("@ALL@", True if value == "true" else "@NONE@", profile)
def messageReceivedTrigger(self, message, profile):
def messageReceivedTrigger(self, message, post_treat, profile):
"""
Update the entity cache when we receive a message with body.
Check for a check state in the incoming message and broadcast signal.