mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
getnick doean't return error if was set before
This commit is contained in:
5
BOB.cpp
5
BOB.cpp
@@ -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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user