Fixed Chatterino attempting to send empty messages in IRC (#3355)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2021-11-20 12:21:42 +00:00
committed by GitHub
parent 56f2207d22
commit b1e891b122
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -18,6 +18,10 @@ IrcChannel::IrcChannel(const QString &name, IrcServer *server)
void IrcChannel::sendMessage(const QString &message)
{
assertInGuiThread();
if (message.isEmpty())
{
return;
}
if (message.startsWith("/"))
{