Merge pull request #2508 from thelounge/xpaw/no-join-topic-log

Do not write topic on join to logs
This commit is contained in:
Jérémie Astori 2018-06-03 18:04:03 -04:00 committed by GitHub
commit 8653b2a382
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,9 +37,16 @@ class Msg {
}
isLoggable() {
if (this.type === Msg.Type.TOPIC) {
// Do not log topic that is sent on channel join
return !!this.from.nick;
}
return this.type !== Msg.Type.MOTD &&
this.type !== Msg.Type.ERROR &&
this.type !== Msg.Type.BANLIST &&
this.type !== Msg.Type.IGNORELIST &&
this.type !== Msg.Type.TOPIC_SET_BY &&
this.type !== Msg.Type.WHOIS;
}
}