summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/commands.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/commands.py b/src/core/commands.py
index c0de8a03..338590f1 100644
--- a/src/core/commands.py
+++ b/src/core/commands.py
@@ -603,7 +603,15 @@ def command_set(self, args):
plugin_config = self.plugin_manager.plugins[plugin_name].config
info = plugin_config.set_and_save(option, value, section)
else:
- section = args[0]
+ if args[0] == '.':
+ name = safeJID(self.current_tab().name).bare
+ if not name:
+ self.information(_('Invalid tab to use the "." argument.'),
+ _('Error'))
+ return
+ section = name
+ else:
+ section = args[0]
option = args[1]
value = args[2]
info = config.set_and_save(option, value, section)