fix //
This commit is contained in:
parent
435bdd6e85
commit
956a33f0d0
1 changed files with 2 additions and 12 deletions
14
src/tab.py
14
src/tab.py
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue