summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-11 19:56:40 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-11 19:56:40 +0100
commite016305c2bea51c9bd2ccc8d2571f7fcea672079 (patch)
tree0d3b9c1839122bd784e8324ab897d37b482730fd /src/tabs.py
parenta8630190fd0ad5f686d865fed24044876c0f7184 (diff)
downloadpoezio-e016305c2bea51c9bd2ccc8d2571f7fcea672079.tar.gz
poezio-e016305c2bea51c9bd2ccc8d2571f7fcea672079.tar.bz2
poezio-e016305c2bea51c9bd2ccc8d2571f7fcea672079.tar.xz
poezio-e016305c2bea51c9bd2ccc8d2571f7fcea672079.zip
And fix the on_enter again (for commands)
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 0a16b71a..f1efdc72 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -246,9 +246,7 @@ class ChatTab(Tab):
def on_enter(self):
txt = self.input.key_enter()
- if not Tab.on_enter(self):
- if txt.startswith('//'):
- txt = txt[1:]
+ if not Tab.on_enter(self, txt):
self.command_say(txt)
def command_say(self, line):