summaryrefslogtreecommitdiff
path: root/poezio/tabs/basetabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-30 12:35:49 +0100
committerLink Mauve <linkmauve@linkmauve.fr>2021-02-03 15:22:09 +0100
commit23c17831438b0d2dfc9da371c3462450a18fafc6 (patch)
treef5c397297e81d696dff1c1bc6b79d53f3afa3b28 /poezio/tabs/basetabs.py
parent184f354e8dac7b49243a1069b9f43c54f4bbe26c (diff)
downloadpoezio-23c17831438b0d2dfc9da371c3462450a18fafc6.tar.gz
poezio-23c17831438b0d2dfc9da371c3462450a18fafc6.tar.bz2
poezio-23c17831438b0d2dfc9da371c3462450a18fafc6.tar.xz
poezio-23c17831438b0d2dfc9da371c3462450a18fafc6.zip
basetabs: remove useless check_features
Diffstat (limited to 'poezio/tabs/basetabs.py')
-rw-r--r--poezio/tabs/basetabs.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 8f746eab..1738ea39 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -955,7 +955,6 @@ class OneToOneTab(ChatTab):
# Set to true once the first disco is done
self.__initial_disco = False
- self.check_features()
self.register_command(
'unquery', self.command_unquery, shortdesc='Close the tab.')
self.register_command(
@@ -1038,14 +1037,6 @@ class OneToOneTab(ChatTab):
)
self.refresh()
- def check_features(self):
- "check the features supported by the other party"
- if safeJID(self.get_dest_jid()).resource:
- self.core.xmpp.plugin['xep_0030'].get_info(
- jid=self.get_dest_jid(),
- timeout=5,
- callback=self.features_checked)
-
@command_args_parser.raw
def command_attention(self, message):
"""/attention [message]"""
@@ -1082,7 +1073,3 @@ class OneToOneTab(ChatTab):
msg = msg % (self.name, feature, command_name)
self.core.information(msg, 'Info')
return True
-
- def features_checked(self, iq):
- "Features check callback"
- features = iq['disco_info'].get_features() or []