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:
parent
abcf030181
commit
3b9b827ebf
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");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user