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>
This commit is contained in:
parent
7fe073c602
commit
b5849a868e
12 changed files with 12 additions and 12 deletions
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue