summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-07-19 18:55:16 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-07-19 18:55:16 +0200
commitb5849a868eee40b430e885f65ed4302df8e722aa (patch)
tree8795bafaad54298999b38e62286da642472ee77d /plugins
parent7fe073c602957248a03fa3db0bebef4e8d768455 (diff)
downloadpoezio-b5849a868eee40b430e885f65ed4302df8e722aa.tar.gz
poezio-b5849a868eee40b430e885f65ed4302df8e722aa.tar.bz2
poezio-b5849a868eee40b430e885f65ed4302df8e722aa.tar.xz
poezio-b5849a868eee40b430e885f65ed4302df8e722aa.zip
plugins: Make all changed plugins work in 1:1 tabs
These were still using tabs.ConversationTab that's been replaced by Dynamic and StaticConversationTab. These class have been introduced after resource locking was removed in 1:1, because they were needed for some plugins like OTR. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/bob.py2
-rw-r--r--plugins/dice.py2
-rw-r--r--plugins/display_corrections.py2
-rw-r--r--plugins/lastlog.py2
-rw-r--r--plugins/marquee.py2
-rw-r--r--plugins/mirror.py2
-rw-r--r--plugins/mpd_client.py2
-rw-r--r--plugins/ping.py2
-rw-r--r--plugins/quote.py2
-rw-r--r--plugins/send_delayed.py2
-rw-r--r--plugins/stoi.py2
-rw-r--r--plugins/vcard.py2
12 files changed, 12 insertions, 12 deletions
diff --git a/plugins/bob.py b/plugins/bob.py
index be56ef4a..2d733e25 100644
--- a/plugins/bob.py
+++ b/plugins/bob.py
@@ -37,7 +37,7 @@ class Plugin(BasePlugin):
default_config = {'bob': {'max_size': 2048, 'max_age': 86400}}
def init(self):
- for tab in tabs.ConversationTab, tabs.PrivateTab, tabs.MucTab:
+ for tab in tabs.DynamicConversationTab, tabs.StaticConversationTab, tabs.PrivateTab, tabs.MucTab:
self.api.add_tab_command(
tab,
'bob',
diff --git a/plugins/dice.py b/plugins/dice.py
index 55fd87a7..f92604e3 100644
--- a/plugins/dice.py
+++ b/plugins/dice.py
@@ -64,7 +64,7 @@ class Plugin(BasePlugin):
default_config = {"dice": {"refresh": 0.5, "default_duration": 5}}
def init(self):
- for tab_t in [tabs.MucTab, tabs.ConversationTab, tabs.PrivateTab]:
+ for tab_t in [tabs.MucTab, tabs.DynamicConversationTab, tabs.StaticConversationTab, tabs.PrivateTab]:
self.api.add_tab_command(
tab_t,
'roll',
diff --git a/plugins/display_corrections.py b/plugins/display_corrections.py
index 22eb196d..e9e8a2e4 100644
--- a/plugins/display_corrections.py
+++ b/plugins/display_corrections.py
@@ -29,7 +29,7 @@ from poezio import tabs
class Plugin(BasePlugin):
def init(self):
- for tab_type in (tabs.MucTab, tabs.PrivateTab, tabs.ConversationTab):
+ for tab_type in (tabs.MucTab, tabs.PrivateTab, tabs.DynamicConversationTab, tabs.StaticConversationTab):
self.api.add_tab_command(
tab_type,
'display_corrections',
diff --git a/plugins/lastlog.py b/plugins/lastlog.py
index fd500e08..314ca75e 100644
--- a/plugins/lastlog.py
+++ b/plugins/lastlog.py
@@ -37,7 +37,7 @@ class Plugin(BasePlugin):
"""Lastlog Plugin"""
def init(self):
- for tab in tabs.ConversationTab, tabs.PrivateTab, tabs.MucTab:
+ for tab in tabs.DynamicConversationTab, tabs.StaticConversationTab, tabs.PrivateTab, tabs.MucTab:
self.api.add_tab_command(
tab,
'lastlog',
diff --git a/plugins/marquee.py b/plugins/marquee.py
index 60566b0d..80bfbfeb 100644
--- a/plugins/marquee.py
+++ b/plugins/marquee.py
@@ -56,7 +56,7 @@ class Plugin(BasePlugin):
}
def init(self):
- for tab_t in [tabs.MucTab, tabs.ConversationTab, tabs.PrivateTab]:
+ for tab_t in [tabs.MucTab, tabs.DynamicConversationTab, tabs.StaticConversationTab, tabs.PrivateTab]:
self.add_tab_command(
tab_t, 'marquee', self.command_marquee,
'Replicate the <marquee/> behavior in a message')
diff --git a/plugins/mirror.py b/plugins/mirror.py
index 116d16b1..55c429a3 100644
--- a/plugins/mirror.py
+++ b/plugins/mirror.py
@@ -16,7 +16,7 @@ from poezio import tabs
class Plugin(BasePlugin):
def init(self):
- for tab_type in (tabs.MucTab, tabs.PrivateTab, tabs.ConversationTab):
+ for tab_type in (tabs.MucTab, tabs.PrivateTab, tabs.DynamicConversationTab, tabs.StaticConversationTab):
self.api.add_tab_command(
tab_type,
'mirror',
diff --git a/plugins/mpd_client.py b/plugins/mpd_client.py
index a8893999..f1eea902 100644
--- a/plugins/mpd_client.py
+++ b/plugins/mpd_client.py
@@ -57,7 +57,7 @@ import mpd
class Plugin(BasePlugin):
def init(self):
- for _class in (tabs.ConversationTab, tabs.MucTab, tabs.PrivateTab):
+ for _class in (tabs.DynamicConversationTab, tabs.StaticConversationTab, tabs.MucTab, tabs.PrivateTab):
self.api.add_tab_command(
_class,
'mpd',
diff --git a/plugins/ping.py b/plugins/ping.py
index b0c115b2..7e0098aa 100644
--- a/plugins/ping.py
+++ b/plugins/ping.py
@@ -58,7 +58,7 @@ class Plugin(BasePlugin):
help='Send an XMPP ping to jid (see XEP-0199).',
short='Send a ping.',
completion=self.completion_ping)
- for _class in (tabs.PrivateTab, tabs.ConversationTab):
+ for _class in (tabs.PrivateTab, tabs.DynamicConversationTab, tabs.StaticConversationTab):
self.api.add_tab_command(
_class,
'ping',
diff --git a/plugins/quote.py b/plugins/quote.py
index b412cd9a..20bd9133 100644
--- a/plugins/quote.py
+++ b/plugins/quote.py
@@ -56,7 +56,7 @@ log = logging.getLogger(__name__)
class Plugin(BasePlugin):
def init(self):
- for _class in (tabs.MucTab, tabs.ConversationTab, tabs.PrivateTab):
+ for _class in (tabs.MucTab, tabs.DynamicConversationTab, tabs.StaticConversationTab, tabs.PrivateTab):
self.api.add_tab_command(
_class,
'quote',
diff --git a/plugins/send_delayed.py b/plugins/send_delayed.py
index 846fccd1..e8b00027 100644
--- a/plugins/send_delayed.py
+++ b/plugins/send_delayed.py
@@ -28,7 +28,7 @@ from poezio import timed_events
class Plugin(BasePlugin):
def init(self):
- for _class in (tabs.PrivateTab, tabs.ConversationTab, tabs.MucTab):
+ for _class in (tabs.PrivateTab, tabs.DynamicConversationTab, tabs.StaticConversationTab, tabs.MucTab):
self.api.add_tab_command(
_class,
'send_delayed',
diff --git a/plugins/stoi.py b/plugins/stoi.py
index 04d84881..78c4ed70 100644
--- a/plugins/stoi.py
+++ b/plugins/stoi.py
@@ -28,7 +28,7 @@ char_we_dont_want = string.punctuation + ' ’„“”…«»'
class Plugin(BasePlugin):
def init(self):
- for tab_type in (tabs.MucTab, tabs.PrivateTab, tabs.ConversationTab):
+ for tab_type in (tabs.MucTab, tabs.PrivateTab, tabs.DynamicConversationTab, tabs.StaticConversationTab):
self.api.add_tab_command(
tab_type,
'stoi',
diff --git a/plugins/vcard.py b/plugins/vcard.py
index 09dcda28..e3a776e3 100644
--- a/plugins/vcard.py
+++ b/plugins/vcard.py
@@ -61,7 +61,7 @@ class Plugin(BasePlugin):
help='Send an XMPP vcard request to jid (see XEP-0054).',
short='Send a vcard request.',
completion=self.completion_vcard)
- for _class in (tabs.PrivateTab, tabs.ConversationTab):
+ for _class in (tabs.PrivateTab, tabs.DynamicConversationTab, tabs.StaticConversationTab):
self.api.add_tab_command(
_class,
'vcard',