Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use FullName, FirstName, LastName, NickName or UserName(if neither is set) as nick for Mattermost #2108

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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) != "" {
Copy link

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

codeclimate bot commented Dec 8, 2023

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