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

WIP: Add server nickname #310

Closed
wants to merge 2 commits into from
Closed

Conversation

cow-face
Copy link
Contributor

@cow-face cow-face commented Jul 6, 2022

Resolves #288

Not sure what to put as the default nickname in the sample config.

@mposs00
Copy link
Collaborator

mposs00 commented Jul 6, 2022

This is going to conflict with #300

Copy link
Collaborator

@Salanto Salanto left a comment

Choose a reason for hiding this comment

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

Needs to be rebased to current master to be mergable, looks fine otherwise.
Make sure to add a test case to verify load behaviour.

@@ -301,6 +301,11 @@ QString ConfigManager::serverName()
return m_settings->value("Options/server_name", "An Unnamed Server").toString();
}

QString ConfigManager::serverNick()
{
return m_settings->value("Options/server_nick", "").toString();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return m_settings->value("Options/server_nick", "").toString();
return m_settings->value("Options/server_nick", "NickName").toString();

If the key is missing we don't want an empty value, as that would look very silly when viewed in client.

@stonedDiscord
Copy link
Member

isn't this the same as serverName or am i missing something here?

@mposs00 mposs00 closed this Apr 6, 2024
@mposs00
Copy link
Collaborator

mposs00 commented Apr 6, 2024

closed as stale

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.

[Feature] Add support for Server Nickname
4 participants