Skip to content

Conversation

AlexanderShK
Copy link

Added new options to use as nicks for Mattermost

update variables
added UseFullName and UseLastName
Added functions for First and Last names
Add ability to use FullName, FirstName, LastName, NickName or UserName(if neither is set) as nick for Mattermost
Added examples NickName/FullName/FirstName/LastName/UserName for Mattermost
rmsg.Username = b.mc.GetLastName(rmsg.UserID)
}
} else if b.GetBool("UseFullName") {
if b.mc.GetFirstName(rmsg.UserID) != "" && b.mc.GetLastName(rmsg.UserID) != "" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid deeply nested control flow statements.

Copy link

Code Climate has analyzed commit b502420 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant