Fix: Do not reported malformed badge for users with no badges
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
433b84fcb7
commit
b24ca61b8e
1 changed files with 1 additions and 1 deletions
2
irc.go
2
irc.go
|
@ -194,7 +194,7 @@ func (ircHandler) ParseBadgeLevels(m *irc.Message) badgeCollection {
|
|||
out := badgeCollection{}
|
||||
|
||||
badgeString, ok := m.GetTag("badges")
|
||||
if !ok {
|
||||
if !ok || len(badgeString) == 0 {
|
||||
return out
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue