mirror of https://notabug.org/acetone/ircabot.git
disable log for empty messages
parent
3d56e593a6
commit
bfd2acff15
|
@ -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)
|
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('#');
|
channel.remove('#');
|
||||||
emit newMessage(m_connectionData.displayName, channel, nick, message);
|
emit newMessage(m_connectionData.displayName, channel, nick, message);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue