disable log for empty messages

master
const an teen 2022-02-11 23:54:44 -05:00
parent 3d56e593a6
commit bfd2acff15
1 changed files with 5 additions and 0 deletions

View File

@ -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);