Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
AshokShau committed Aug 19, 2024
1 parent ebd5621 commit 66e91a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions alita/modules/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ func (m moduleStruct) rulesBtn(bot *gotgbot.Bot, ctx *ext.Context) error {
} else {
customRulesBtn := db.GetChatRulesInfo(chat.Id).RulesBtn
if customRulesBtn == "" {
text = fmt.Sprintf("You haven't set a custom rules button yet. The default text \"%q\" will be used.", m.defaultRulesBtn)
text = fmt.Sprintf("You haven't set a custom rules button yet. The default text \"%s\" will be used.", m.defaultRulesBtn)
} else {
text = fmt.Sprintf("The rules button is currently set to the following text:\n %q", customRulesBtn)
text = fmt.Sprintf("The rules button is currently set to the following text:\n %s", customRulesBtn)
}
}

Expand Down
2 changes: 1 addition & 1 deletion alita/utils/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func MentionHtml(userId int64, name string) string {

// MentionUrl returns a mention in HTML format.
func MentionUrl(url, name string) string {
return fmt.Sprintf("<a href=\"%s\">%q</a>", url, html.EscapeString(name))
return fmt.Sprintf("<a href=\"%s\">%s</a>", url, html.EscapeString(name))
}

// GetFullName returns the full name of a user.
Expand Down

0 comments on commit 66e91a7

Please sign in to comment.