diff --git a/ircclient.cpp b/ircclient.cpp index 7853344..1bf48b8 100644 --- a/ircclient.cpp +++ b/ircclient.cpp @@ -204,6 +204,11 @@ void IrcClient::toTrigger(const QString& channel, const QString &nickname, const void IrcClient::toChatLog(QString channel, const QString &nick, const QString &message) { + QString msg {message}; // Empty message ignored + msg.remove(" "); + msg.remove("\t"); + if (msg.isEmpty()) return; + channel.remove('#'); emit newMessage(m_connectionData.displayName, channel, nick, message);