mirror of
https://github.com/thelounge/thelounge
synced 2025-02-17 05:38:25 +00:00
Do not write topic on join to logs
This commit is contained in:
parent
a6ed4f3652
commit
b0f32dc29b
1 changed files with 6 additions and 0 deletions
|
@ -37,9 +37,15 @@ 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.TOPIC_SET_BY &&
|
||||
this.type !== Msg.Type.WHOIS;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue