Skip to content

Commit

Permalink
better emote cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
gempir committed Mar 3, 2024
1 parent c6c601d commit 0442463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/george/ollama.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func (o *Ollama) AnalyzeUser(query string, channel string, username string, mont
}

var user emoteservice.User
if _, ok := userDataMap[username]; ok {
user, err = o.emoteservice.GetUser(userDataMap[username].ID)
if _, ok := userDataMap[channel]; ok {
user, err = o.emoteservice.GetUser(userDataMap[channel].ID)
if err != nil {
log.Errorf("failed to get user data from 7tv: %s", err)
return nil
Expand Down

0 comments on commit 0442463

Please sign in to comment.