From 5da61b460b60c6c5e5fe340ee5317b69b92a6d5d Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Tue, 13 Feb 2018 23:10:26 +0400 Subject: [PATCH] Valentine label fix --- lib/users/parsers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/users/parsers.go b/lib/users/parsers.go index 886fa07..407c63a 100644 --- a/lib/users/parsers.go +++ b/lib/users/parsers.go @@ -4,9 +4,9 @@ package users import ( - "source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/go-telegram-bot-api/telegram-bot-api" "regexp" + "source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "strconv" "strings" "time" @@ -299,7 +299,7 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe rarity = "new year" meme = strings.Replace(meme, "❄", "", 1) } - if strings.HasPrefix(meme, "❤️") { + if strings.HasPrefix(meme, "❤") { rarity = "valentine" meme = strings.Replace(meme, "❤️", "", 1) }