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_Nickname = operand;
}
if (m_Nickname == operand)
{
std::string msg ("Nickname set to ");
msg += m_Nickname;
SendReplyOK (msg.c_str ());
}
}
else
SendReplyError ("no nickname has been set");
}