/// <summary> /// Send all channel user information /// </summary> private void GetUserInfo() { ChatSession session; if (!ChatSessionManager.GetSessionByUserName(_request.NickName, out session)) { _errorCode = ChatError.NoSuchNick; return; } _resultSession = session; }
/// <summary> /// Send all channel user information /// </summary> private void GetUserInfo() { ChatSession session; if (ChatSessionManager.GetSessionByNickName(_cmd.Name, out session)) { BuildWhoReplyForUser(session); } else if (ChatSessionManager.GetSessionByUserName(_cmd.Name, out session)) { BuildWhoReplyForUser(session); } else //todo check whether we need this error { _errorCode = ChatError.IRCError; _sendingBuffer = ChatIRCError.BuildNoSuchNickError(); } }