summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-06 20:30:41 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-01-26 10:05:33 +0100
commit94140aba91d302c320f69e2e40a3164ae21ddb01 (patch)
tree92f318df7d6c5a8f5d86fbb7dbe9b139fb6330db /src
parent80047cdebe815ea78b6567fd7a1511f221b2f116 (diff)
downloadpoezio-94140aba91d302c320f69e2e40a3164ae21ddb01.tar.gz
poezio-94140aba91d302c320f69e2e40a3164ae21ddb01.tar.bz2
poezio-94140aba91d302c320f69e2e40a3164ae21ddb01.tar.xz
poezio-94140aba91d302c320f69e2e40a3164ae21ddb01.zip
Fix a crash on empty command in muclisttab
Diffstat (limited to 'src')
-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):