get old skype account username

This commit is contained in:
zhaoYangguang 2020-12-17 16:54:28 +08:00
parent da535e7346
commit 06a7d25ec4
1 changed files with 3 additions and 0 deletions

View File

@ -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