core: replaced SkipHistory exception by a key in mess_data:

SkipHistory was skipping all remaining triggers just to skip history, which is not the intented behaviour.
    Now history can be skipped by setting mess_data[u'history'] = C.HISTORY_SKIP, this way we won't skip importants triggers.
    When history is skipped, mess_data[u'extra'][u'history'] will be set to C.HISTORY_SKIP for frontends, so they can inform user that the message is not stored locally.
This commit is contained in:
Goffi 2017-02-05 14:55:21 +01:00
commit 503f8644ba

View file

@ -37,6 +37,7 @@ class Const(object):
## Runtime ##
PLUGIN_EXT = "py"
HISTORY_SKIP = u'skip'
## Main config ##
DEFAULT_BRIDGE = 'dbus'