From ec7dd75012bafd5281e88aa83c54547cb3b36bf5 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 29 Jul 2012 19:45:46 +0200 Subject: /bind with only one argument now resets the binding --- src/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/common.py') diff --git a/src/common.py b/src/common.py index 26b5dd0f..23912411 100644 --- a/src/common.py +++ b/src/common.py @@ -188,10 +188,10 @@ def shell_split(st): return st.split(" ") def replace_key_with_bound(key): - if config.has_option('bindings', key): - return config.get(key, key, 'bindings') - else: - return key + bind = config.get(key, key, 'bindings') + if not bind: + bind = key + return bind def parse_str_to_secs(duration=''): """ -- cgit v1.2.3