diff options
author | lovetox <philipp@hoerist.com> | 2020-03-22 00:58:09 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-22 00:58:09 +0300 |
commit | 8bc839743fb6ce8111157c883baf3bd9c3639cfb (patch) | |
tree | 4dcbcce229ee49deef523858782b84151cbb5766 /nbxmpp | |
parent | ecb882e0cd303ad1a394db4a373e6ea4d72b8584 (diff) |
Dataforms: Add is_fake_form() method
Diffstat (limited to 'nbxmpp')
-rw-r--r-- | nbxmpp/modules/dataforms.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nbxmpp/modules/dataforms.py b/nbxmpp/modules/dataforms.py index fe11ec0..e29ac79 100644 --- a/nbxmpp/modules/dataforms.py +++ b/nbxmpp/modules/dataforms.py @@ -592,6 +592,9 @@ class DataRecord(ExtendedNode): return False return True + def is_fake_form(self): + return bool(self.vars.get('fakeform', False)) + class DataForm(ExtendedNode): def __init__(self, type_=None, title=None, instructions=None, extend=None): |