diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-11-25 03:20:01 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-11-25 03:20:01 +0000 |
commit | 956a33f0d0f2fe799e3ba09f9e9cec9af6c41fc0 (patch) | |
tree | 75bed826c95871d0ff26d045630796406fc265e8 /src | |
parent | 435bdd6e85da9a3d075ca3dd6f9d60c249359469 (diff) | |
download | poezio-956a33f0d0f2fe799e3ba09f9e9cec9af6c41fc0.tar.gz poezio-956a33f0d0f2fe799e3ba09f9e9cec9af6c41fc0.tar.bz2 poezio-956a33f0d0f2fe799e3ba09f9e9cec9af6c41fc0.tar.xz poezio-956a33f0d0f2fe799e3ba09f9e9cec9af6c41fc0.zip |
fix //
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.py | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -291,6 +291,8 @@ class ChatTab(Tab): else: self.core.information(_("Unknown command (%s)") % (command), _('Error')) else: + if txt.startswith('//'): + txt = txt[1:] self.command_say(txt) def command_say(self, line): @@ -631,12 +633,6 @@ class PrivateTab(ChatTab): self.input.do_command(key) return False - # def on_enter(self): - # """ - # When enter is pressed, send the message to the Muc - # """ - # self.core.execute(self.input.key_enter()) - def on_lose_focus(self): self._room.set_color_state(theme.COLOR_TAB_NORMAL) self._room.remove_line_separator() @@ -907,12 +903,6 @@ class ConversationTab(ChatTab): self.input.do_command(key) return False - # def on_enter(self): - # """ - # When enter is pressed, send the message to the Muc - # """ - # self.core.execute(self.input.key_enter()) - def on_lose_focus(self): self.set_color_state(theme.COLOR_TAB_NORMAL) self._room.remove_line_separator() |