Skip to content

Commit

Permalink
fix: emojimode setting
Browse files Browse the repository at this point in the history
  • Loading branch information
aripalo committed Apr 11, 2022
1 parent 2941274 commit 4eaa990
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ func (m *Message) SetColorMode(colorMode bool) {
}

// SetEmojiMode controls if emojis are printed with the messages:
// Even when colors are enabled!
// Can be disabled even when colors are enabled, but not enabled
// when colors are disabled.
func (m *Message) SetEmojiMode(emojiMode bool) {
if allowEmoji(m.appName) {
m.emojiMode = emojiMode
if m.colorMode {
m.emojiMode = emojiMode
}
}
}

Expand Down

0 comments on commit 4eaa990

Please sign in to comment.