plugin otr: various improvments:
- messageSend trigger now use pre_xml_treatments so it doesn't block other triggers of higher priority
- text commands now use a very high priority, as it is local command and should not be blocked in most of cases
- new otrState signal, to send state change to frontends
- history is not skipped anymore, a future option may change this behaviour
- OTR trigger are skipped on groupchat messages
- context_manager is now in client instead of being global to plugin
- removed fixPotr as it is fixed upstream
note triggers should be improved for encryption methods, as skipping an encrypter may break security, but putting it in top priority may break nice features.
fix bug 170
This commit is contained in:
parent
10adbb04a4
commit
115f5ae0e1
1 changed files with 111 additions and 98 deletions
|
|
@ -323,6 +323,7 @@ class QuickApp(object):
|
|||
@param iface (str): interface of the bridge to use ('core' or 'plugin')
|
||||
@param with_profile (boolean): True if the signal concerns a specific profile, in that case the profile name has to be passed by the caller
|
||||
"""
|
||||
log.debug(u"registering signal {name}".format(name = function_name))
|
||||
if handler is None:
|
||||
handler = getattr(self, "{}{}".format(function_name, 'Handler'))
|
||||
if not with_profile:
|
||||
|
|
@ -493,6 +494,8 @@ class QuickApp(object):
|
|||
def newWidget(self, widget):
|
||||
raise NotImplementedError
|
||||
|
||||
# bridge signals hanlers
|
||||
|
||||
def connectedHandler(self, profile, jid_s):
|
||||
"""Called when the connection is made.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue