mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 09:00:30 +01:00
getnick doean't return error if was set before
This commit is contained in:
parent
abcf030181
commit
3b9b827ebf
1 changed files with 4 additions and 1 deletions
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…
Add table
Reference in a new issue