Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix tpl_mode too verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Dec 16, 2019
1 parent 6c8cc8c commit f503cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/autoload.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ func initTPL() {
}
MessageTpl = template.Must(template.New("message").Parse(tplMsg))

if viper.IsSet("message_tpl_mode") {
switch strings.ToLower(viper.GetString("message_tpl_mode")) {
if viper.IsSet("message_mode") {
switch strings.ToLower(viper.GetString("message_mode")) {
case "md", "markdown":
MessageMode = tb.ModeMarkdown
case "html":
Expand Down

0 comments on commit f503cea

Please sign in to comment.