diff --git a/user.go b/user.go index 216e94d..e0b7259 100644 --- a/user.go +++ b/user.go @@ -372,6 +372,9 @@ func (user *User) Login(ce *CommandEvent, name string, password string) (err err if len(user.Conn.UserProfile.LastName) > 0 { username = username + user.Conn.UserProfile.LastName } + if username == "" { + username = user.Conn.UserProfile.Username + } ce.Reply("Successfully logged in as @" + username) user.Conn.Subscribes() // subscribe basic event