summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-06 20:30:41 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-06 20:30:41 +0100
commita0404f3077c9ec932f0272b770a9c985ccda25cc (patch)
tree92f318df7d6c5a8f5d86fbb7dbe9b139fb6330db
parentfcbe84e5a69a61a8c58ff1c8a2ef86aa8a5ac8a4 (diff)
downloadpoezio-a0404f3077c9ec932f0272b770a9c985ccda25cc.tar.gz
poezio-a0404f3077c9ec932f0272b770a9c985ccda25cc.tar.bz2
poezio-a0404f3077c9ec932f0272b770a9c985ccda25cc.tar.xz
poezio-a0404f3077c9ec932f0272b770a9c985ccda25cc.zip
Fix a crash on empty command in muclisttab
-rw-r--r--src/tabs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 06e89f44..d41bf9d3 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2369,7 +2369,9 @@ class MucListTab(Tab):
return True
def execute_slash_command(self, txt):
- self.execute_command(txt)
+ if txt.startswith('/'):
+ self.input.key_enter()
+ self.execute_command(txt)
return self.reset_help_message()
def get_name(self):