fix the username response(old skype account)

This commit is contained in:
zhaoYangguang 2021-02-22 17:49:22 +08:00
parent 067228b700
commit 9bb85282de
1 changed files with 3 additions and 0 deletions

View File

@ -479,6 +479,9 @@ func (handler *CommandHandler) CommandPing(ce *CommandEvent) {
if len(ce.User.Conn.UserProfile.LastName) > 0 { if len(ce.User.Conn.UserProfile.LastName) > 0 {
username = username + ce.User.Conn.UserProfile.LastName username = username + ce.User.Conn.UserProfile.LastName
} }
if username == "" {
username = ce.User.Conn.UserProfile.Username
}
ce.Reply("You're logged in as @" + username) ce.Reply("You're logged in as @" + username)
} }
} }