Do not write topic on join to logs
This commit is contained in:
parent
a6ed4f3652
commit
b0f32dc29b
@ -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…
Reference in New Issue
Block a user