get old skype account username
This commit is contained in:
parent
da535e7346
commit
06a7d25ec4
3
user.go
3
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
|
||||
|
|
Loading…
Reference in New Issue