diff --git a/pkg/bot/bot.go b/pkg/bot/bot.go index b7d4128..e09788d 100644 --- a/pkg/bot/bot.go +++ b/pkg/bot/bot.go @@ -161,7 +161,11 @@ func (b *Type) userConnected(u altvr.User) { if err != nil { return } - s := fmt.Sprintf("%s**%s is now online in %s!**", b.getUserEmojiByAltVRUser(u), u.GetDisplayName(), u.CurrentSpace.Name) + ws := u.CurrentSpace.Name + if ws != "" { + ws = fmt.Sprintf(" in %s", ws) + } + s := fmt.Sprintf("%s**%s is now online%s!**", b.getUserEmojiByAltVRUser(u), u.GetDisplayName(), ws) if !b.isQuiet && !upHas(uu.Privacy, userPrivacyJoin) { b.dg.Session.ChannelMessageSend(b.DGcID, s) }