| 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 | { |
nothing calls this directly
no test coverage detected