diff options
Diffstat (limited to 'components/chatwindow.cpp')
-rw-r--r-- | components/chatwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp index 1a2bb48..55ff06d 100644 --- a/components/chatwindow.cpp +++ b/components/chatwindow.cpp @@ -200,6 +200,9 @@ bool ChatWindow::OnInputSubmit(const Glib::ustring &text) { if (!m_rate_limit_indicator->CanSpeak()) return false; + if (text.size() == 0) + return false; + if (m_active_channel.IsValid()) m_signal_action_chat_submit.emit(text, m_active_channel, m_replying_to); // m_replying_to is checked for invalid in the handler if (m_is_replying) |