summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/commands.rst9
-rw-r--r--doc/source/plugins/index.rst6
-rw-r--r--plugins/irc.py2
3 files changed, 14 insertions, 3 deletions
diff --git a/doc/source/commands.rst b/doc/source/commands.rst
index da49d57e..20eeede1 100644
--- a/doc/source/commands.rst
+++ b/doc/source/commands.rst
@@ -59,10 +59,15 @@ These commands work in *any* tab.
/quit
Just disconnect from the server and exit poezio.
- /plugin
+ /load
**Usage:** ``/load <plugin name>``
- Load a plugin.
+ Load or reload a plugin.
+
+ /unload
+ **Usage:** ``/unload <plugin name>``
+
+ Unload a plugin.
/plugins
List the loaded plugins.
diff --git a/doc/source/plugins/index.rst b/doc/source/plugins/index.rst
index 28c03b55..d608742f 100644
--- a/doc/source/plugins/index.rst
+++ b/doc/source/plugins/index.rst
@@ -33,6 +33,12 @@ e.g.
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
diff --git a/plugins/irc.py b/plugins/irc.py
index 62192ec5..6341851e 100644
--- a/plugins/irc.py
+++ b/plugins/irc.py
@@ -100,7 +100,7 @@ class Plugin(BasePlugin):
sections = self.config.sections()
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
for tab in self.core.tabs: