Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0085.py @ 868:967b94ef821e
plugin XEP-0085: fixed bad trigger return value
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 25 Feb 2014 23:03:17 +0100 |
parents | 1fe00f0c9a91 |
children | 2ef523f0b5c3 |
comparison
equal
deleted
inserted
replaced
867:40ad5a344332 | 868:967b94ef821e |
---|---|
132 @param value: "true" to activate the notifications, or any other value to delete it | 132 @param value: "true" to activate the notifications, or any other value to delete it |
133 @param category: parameter category | 133 @param category: parameter category |
134 """ | 134 """ |
135 if (category, name) == (PARAM_KEY, PARAM_NAME): | 135 if (category, name) == (PARAM_KEY, PARAM_NAME): |
136 self.updateEntityData("@ALL@", True if value == "true" else "@NONE@", profile) | 136 self.updateEntityData("@ALL@", True if value == "true" else "@NONE@", profile) |
137 return False | |
138 return True | |
139 | |
137 | 140 |
138 def messageReceivedTrigger(self, message, post_treat, profile): | 141 def messageReceivedTrigger(self, message, post_treat, profile): |
139 """ | 142 """ |
140 Update the entity cache when we receive a message with body. | 143 Update the entity cache when we receive a message with body. |
141 Check for a check state in the incoming message and broadcast signal. | 144 Check for a check state in the incoming message and broadcast signal. |