From dbc21a661784e190b8235b4976854d781d2a6e9f Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 28 Mar 2014 00:15:31 +0100 Subject: Also document manual plugin load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (why wasn’t that already here?) --- doc/source/commands.rst | 9 +++++++-- doc/source/plugins/index.rst | 6 ++++++ plugins/irc.py | 2 +- 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 `` - Load a plugin. + Load or reload a plugin. + + /unload + **Usage:** ``/unload `` + + 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: -- cgit v1.2.3