Do not send the composing chatstate if we are typing a command

This commit is contained in:
Florent Le Coz 2011-02-24 20:13:45 +01:00
parent 138b17cdb3
commit 6f87306a7e

View file

@ -1172,7 +1172,7 @@ class ConversationTab(ChatTab, TabWithInfoWin):
msg['type'] = 'chat'
msg['chat_state'] = 'active'
msg.send()
elif self.input.get_text() and empty_before:
elif self.input.get_text() and empty_before and not self.input.get_text().startswith('/'):
msg = self.core.xmpp.make_message(self.get_name())
msg['type'] = 'chat'
msg['chat_state'] = 'composing'