Skip to content

Commit

Permalink
Set nick if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Lpsd committed Oct 15, 2023
1 parent 9a7cc2c commit be092ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Client/core/CCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,9 @@ void CCore::GetConnectParametersFromURI(const char* szURI, std::string& strHost,
if (optionalParts[CURLUPART_USER] != CURLUE_NO_USER)
strNick = user;

if (strNick.empty())
CVARS_GET("nick", strNick);

if (optionalParts[CURLUPART_PASSWORD] != CURLUE_NO_PASSWORD)
strPassword = password;

Expand Down

0 comments on commit be092ca

Please sign in to comment.