mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-11 18:22:21 +02:00
Merge pull request #2508 from thelounge/xpaw/no-join-topic-log
Do not write topic on join to logs
This commit is contained in:
commit
8653b2a382
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue