1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 00:18:31 +00:00

fix marshalling emote usage, log non-hello first messages

This commit is contained in:
Kane York 2015-10-28 15:49:53 -07:00
parent 9f1c369fdb
commit 59ba6d52f6
2 changed files with 7 additions and 1 deletions

View file

@ -287,7 +287,12 @@ func DoSendAggregateData() {
reportForm.Set("follows", string(followJson))
}
emoteJson, err := json.Marshal(emoteUsage)
strEmoteUsage := make(map[string]map[string]int)
for emoteId, usageByChannel := range emoteUsage {
strEmoteId := strconv.Itoa(emoteId)
strEmoteUsage[strEmoteId] = usageByChannel
}
emoteJson, err := json.Marshal(strEmoteUsage)
if err != nil {
log.Print(err)
} else {