1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

getnick doean't return error if was set before

This commit is contained in:
orignal 2016-07-21 20:42:40 -04:00
parent abcf030181
commit 3b9b827ebf

View File

@ -409,10 +409,13 @@ namespace client
{ {
m_Keys = m_CurrentDestination->GetKeys (); m_Keys = m_CurrentDestination->GetKeys ();
m_Nickname = operand; m_Nickname = operand;
}
if (m_Nickname == operand)
{
std::string msg ("Nickname set to "); std::string msg ("Nickname set to ");
msg += m_Nickname; msg += m_Nickname;
SendReplyOK (msg.c_str ()); SendReplyOK (msg.c_str ());
} }
else else
SendReplyError ("no nickname has been set"); SendReplyError ("no nickname has been set");
} }