Commit dbc21a66 authored by mathieui's avatar mathieui

Also document manual plugin load

(why wasn’t that already here?)
parent cf752c27
...@@ -59,10 +59,15 @@ These commands work in *any* tab. ...@@ -59,10 +59,15 @@ These commands work in *any* tab.
/quit /quit
Just disconnect from the server and exit poezio. Just disconnect from the server and exit poezio.
/plugin /load
**Usage:** ``/load <plugin name>`` **Usage:** ``/load <plugin name>``
Load a plugin. Load or reload a plugin.
/unload
**Usage:** ``/unload <plugin name>``
Unload a plugin.
/plugins /plugins
List the loaded plugins. List the loaded plugins.
......
...@@ -33,6 +33,12 @@ e.g. ...@@ -33,6 +33,12 @@ e.g.
plugins_autoload = gpg:tell:exec plugins_autoload = gpg:tell:exec
Manual plugin load
------------------
Plugins can of course be loaded with the command :term:`/load` and unloaded
with the command :term:`/unload`.
.. _plugin-configuration: .. _plugin-configuration:
Plugin configuration Plugin configuration
......
...@@ -100,7 +100,7 @@ class Plugin(BasePlugin): ...@@ -100,7 +100,7 @@ class Plugin(BasePlugin):
sections = self.config.sections() sections = self.config.sections()
for section in (s for s in sections if s != 'irc'): for section in (s for s in sections if s != 'irc'):
server_suffix = '%%%s@%s' % (section, gateway) server_suffix = '%{}@{}'.format(section, gateway)
already_opened = False already_opened = False
for tab in self.core.tabs: for tab in self.core.tabs:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment