diff options
author | mathieui <mathieui@mathieui.net> | 2014-03-28 00:15:31 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-03-28 00:15:31 +0100 |
commit | dbc21a661784e190b8235b4976854d781d2a6e9f (patch) | |
tree | 453597799cabb0d8e0b0e5a4d0b4e8d2980a27bc | |
parent | cf752c27b20710838cbb1eaffe831acbc4577055 (diff) | |
download | poezio-dbc21a661784e190b8235b4976854d781d2a6e9f.tar.gz poezio-dbc21a661784e190b8235b4976854d781d2a6e9f.tar.bz2 poezio-dbc21a661784e190b8235b4976854d781d2a6e9f.tar.xz poezio-dbc21a661784e190b8235b4976854d781d2a6e9f.zip |
Also document manual plugin load
(why wasn’t that already here?)
-rw-r--r-- | doc/source/commands.rst | 9 | ||||
-rw-r--r-- | doc/source/plugins/index.rst | 6 | ||||
-rw-r--r-- | 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 <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: |