Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/nbxmpp
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-03-22 00:58:09 +0300
committerlovetox <philipp@hoerist.com>2020-03-22 00:58:09 +0300
commit8bc839743fb6ce8111157c883baf3bd9c3639cfb (patch)
tree4dcbcce229ee49deef523858782b84151cbb5766 /nbxmpp
parentecb882e0cd303ad1a394db4a373e6ea4d72b8584 (diff)
Dataforms: Add is_fake_form() method
Diffstat (limited to 'nbxmpp')
-rw-r--r--nbxmpp/modules/dataforms.py3
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):