public static ChatUser SearchForUser(ChatUser from, string name) { var user = ChatUser.GetChatUser(name); if (user == null) { from.SendMessage(32, name); // There is no player named '%1'. } return(user); }