Do not write topic on join to logs

This commit is contained in:
Pavel Djundik 2018-06-03 22:12:17 +03:00
parent a6ed4f3652
commit b0f32dc29b
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}
}