MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / SetNickCommandHandler

Method SetNickCommandHandler

libi2pd_client/BOB.cpp:567–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565 }
566
567 void BOBCommandSession::SetNickCommandHandler (const char * operand, size_t len)
568 {
569 LogPrint (eLogDebug, "BOB: setnick ", operand);
570 if(*operand)
571 {
572 auto dest = m_Owner.FindDestination (operand);
573 if (!dest)
574 {
575 m_Nickname = operand;
576 SendReplyOK ({ "Nickname set to ", m_Nickname });
577 }
578 else
579 SendReplyError ("tunnel is active");
580 }
581 else
582 SendReplyError ("no nickname has been set");
583 }
584
585 void BOBCommandSession::GetNickCommandHandler (const char * operand, size_t len)
586 {

Callers

nothing calls this directly

Calls 2

LogPrintFunction · 0.85
FindDestinationMethod · 0.80

Tested by

no test coverage detected